From aef04aca5b000384b014c0e6215355063f3efa5d Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Mon, 28 Oct 2013 05:07:55 +0000 Subject: [PATCH] merged move_storage fix from RC_0_16 --- src/storage.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/storage.cpp b/src/storage.cpp index 686f2b520..155d909a8 100644 --- a/src/storage.cpp +++ b/src/storage.cpp @@ -822,6 +822,14 @@ namespace libtorrent { error_code ec; recursive_copy(old_path, new_path, ec); + if (ec == boost::system::errc::no_such_file_or_directory) + { + // it's a bit weird that rename() would not return + // ENOENT, but the file still wouldn't exist. But, + // in case it does, we're done. + ec.clear(); + break; + } if (ec) { set_error(old_path, ec);