From e52aa52a664b602a8917e69f6db4aefc6258f46c Mon Sep 17 00:00:00 2001 From: "Admiral H. Curtiss" Date: Wed, 22 Feb 2023 01:54:41 +0100 Subject: Common/FileUtil: Rename Copy() to CopyRegularFile(). This is to clarify that it can only copy files, not folders. --- Source/Core/Common/FileUtil.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Source/Core/Common/FileUtil.cpp') diff --git a/Source/Core/Common/FileUtil.cpp b/Source/Core/Common/FileUtil.cpp index f1e0517644..0d4288c609 100644 --- a/Source/Core/Common/FileUtil.cpp +++ b/Source/Core/Common/FileUtil.cpp @@ -312,8 +312,7 @@ bool RenameSync(const std::string& srcFilename, const std::string& destFilename) return true; } -// copies file source_path to destination_path, returns true on success -bool Copy(const std::string& source_path, const std::string& destination_path) +bool CopyRegularFile(std::string_view source_path, std::string_view destination_path) { DEBUG_LOG_FMT(COMMON, "{}: {} --> {}", __func__, source_path, destination_path); -- cgit v1.2.3