fix move_storage fail_if_exist logic. First check to see if the root folder exists, as an early exit

This commit is contained in:
Arvid Norberg 2013-05-11 21:41:42 +00:00
parent 01c8c8543b
commit cf7a2a098e
1 changed files with 1 additions and 1 deletions

View File

@ -761,7 +761,7 @@ namespace libtorrent
file_status s;
if (flags == fail_if_exist)
{
stat_file(save_path, &s, ec);
stat_file(combine_path(save_path, f.name()), &s, ec);
if (ec != boost::system::errc::no_such_file_or_directory)
{
// the directory exists, check all the files