forked from premiere/premiere-libtorrent
file not found is not an error in exists()
This commit is contained in:
parent
2943bd4d7d
commit
e2d73cfe38
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue