From 7e4d5dc72ff124c341249b2752d2ac14644df41c Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Fri, 14 Nov 2008 23:23:02 +0000 Subject: [PATCH] avoid exception from boost.filesystem --- src/storage.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/storage.cpp b/src/storage.cpp index 6e5a92468..f69dcde88 100644 --- a/src/storage.cpp +++ b/src/storage.cpp @@ -325,10 +325,10 @@ namespace libtorrent #else fs::path f = p / i->path; #endif + // TODO: optimize + if (exists(f)) #ifndef BOOST_NO_EXCEPTIONS try -#else - if (exists(f)) #endif { size = file_size(f);