file not found is not an error in exists()

This commit is contained in:
Arvid Norberg 2015-01-15 02:31:38 +00:00
parent 2943bd4d7d
commit e2d73cfe38
1 changed files with 6 additions and 1 deletions

View File

@ -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;
}