diff --git a/src/file.cpp b/src/file.cpp index ce81edc54..c424b726c 100644 --- a/src/file.cpp +++ b/src/file.cpp @@ -869,7 +869,12 @@ namespace libtorrent { file_status s; stat_file(f, &s, ec); - if (ec) return false; + if (ec) + { + if (ec == boost::system::errc::no_such_file_or_directory) + ec.clear(); + return false; + } return true; }