forked from premiere/premiere-libtorrent
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:
parent
01c8c8543b
commit
cf7a2a098e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue