pass in the full path to the predicate function fo add_files

This commit is contained in:
Arvid Norberg 2010-01-19 03:05:43 +00:00
parent 8dcecca823
commit 7c2d4f0f08
1 changed files with 1 additions and 1 deletions

View File

@ -157,8 +157,8 @@ namespace libtorrent
void add_files_impl(file_storage& fs, std::string const& p
, std::string const& l, Pred pred)
{
if (!pred(l)) return;
std::string f = combine_path(p, l);
if (!pred(f)) return;
error_code ec;
file_status s;
stat_file(f, &s, ec);