diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2023-02-24 21:48:48 +0100 |
|---|---|---|
| committer | Admiral H. Curtiss <pikachu025@gmail.com> | 2023-02-26 23:17:10 +0100 |
| commit | a11b9d585f0d4668a8d4f698e0d03d1c79013eac (patch) | |
| tree | e5362dd0517d8d95b1ee5e590c1f7d4ca67e9b8b /Source/Core/Common/FileUtil.cpp | |
| parent | 4f462b4ef6b274468b0e8d38e0c712b286cf69ae (diff) | |
Common/FileUtil: Remove obsolete CopyDir() function.
Diffstat (limited to 'Source/Core/Common/FileUtil.cpp')
| -rw-r--r-- | Source/Core/Common/FileUtil.cpp | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/Source/Core/Common/FileUtil.cpp b/Source/Core/Common/FileUtil.cpp index 333831d39f..d456952980 100644 --- a/Source/Core/Common/FileUtil.cpp +++ b/Source/Core/Common/FileUtil.cpp @@ -610,29 +610,6 @@ bool MoveWithOverwrite(std::string_view source_path, std::string_view dest_path) return true; } -// Create directory and copy contents (optionally overwrites existing files) -bool CopyDir(const std::string& source_path, const std::string& dest_path, const bool destructive) -{ - auto src_path = StringToPath(source_path); - auto dst_path = StringToPath(dest_path); - if (fs::equivalent(src_path, dst_path)) - return true; - - DEBUG_LOG_FMT(COMMON, "{}: {} --> {}", __func__, source_path, dest_path); - - auto options = fs::copy_options::recursive; - if (destructive) - options |= fs::copy_options::overwrite_existing; - std::error_code error; - bool copied = fs::copy_file(src_path, dst_path, options, error); - if (!copied) - { - ERROR_LOG_FMT(COMMON, "{}: failed {} --> {}: {}", __func__, source_path, dest_path, - error.message()); - } - return copied; -} - // Returns the current directory std::string GetCurrentDir() { |
