diff options
Diffstat (limited to 'base/file_util.h')
-rw-r--r-- | base/file_util.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/base/file_util.h b/base/file_util.h index 297d257..70e24e1 100644 --- a/base/file_util.h +++ b/base/file_util.h @@ -254,6 +254,12 @@ bool UpdateShortcutLink(const wchar_t *source, const wchar_t *destination, // Return true if the given directory is empty bool IsDirectoryEmpty(const std::wstring& dir_path); +// Copy from_path to to_path recursively and then delete from_path recursively. +// Returns true if all operations succeed. +// This function simulates Move(), but unlike Move() it works across volumes. +// This fuction is not transactional. +bool CopyAndDeleteDirectory(const FilePath& from_path, + const FilePath& to_path); #endif // Get the temporary directory provided by the system. |