From 7c2d4f0f08f34ec90bab7add3a01f207a5ef6704 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Tue, 19 Jan 2010 03:05:43 +0000 Subject: [PATCH] pass in the full path to the predicate function fo add_files --- include/libtorrent/create_torrent.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/libtorrent/create_torrent.hpp b/include/libtorrent/create_torrent.hpp index 6740fe9d2..1a9ebba40 100644 --- a/include/libtorrent/create_torrent.hpp +++ b/include/libtorrent/create_torrent.hpp @@ -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);