From ba284497659ac8236efe4dc40c9ced85cda5036c Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Tue, 30 Sep 2008 23:55:45 +0000 Subject: [PATCH] rename_file now creates missing directories before renaming --- src/storage.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/storage.cpp b/src/storage.cpp index 8596ed703..82ed21ffc 100644 --- a/src/storage.cpp +++ b/src/storage.cpp @@ -587,6 +587,7 @@ namespace libtorrent // if old path doesn't exist, just rename the file // in our file_storage, so that when it is created // it will get the new name + create_directories(new_path.branch_path()); if (exists(old_path)) rename(old_path, new_path); /* error_code ec;