avoid exception from boost.filesystem
This commit is contained in:
parent
40946162b3
commit
7e4d5dc72f
|
@ -325,10 +325,10 @@ namespace libtorrent
|
||||||
#else
|
#else
|
||||||
fs::path f = p / i->path;
|
fs::path f = p / i->path;
|
||||||
#endif
|
#endif
|
||||||
|
// TODO: optimize
|
||||||
|
if (exists(f))
|
||||||
#ifndef BOOST_NO_EXCEPTIONS
|
#ifndef BOOST_NO_EXCEPTIONS
|
||||||
try
|
try
|
||||||
#else
|
|
||||||
if (exists(f))
|
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
size = file_size(f);
|
size = file_size(f);
|
||||||
|
|
Loading…
Reference in New Issue