aboutsummaryrefslogtreecommitdiff
path: root/src/zencore/filesystem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/zencore/filesystem.cpp')
-rw-r--r--src/zencore/filesystem.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/zencore/filesystem.cpp b/src/zencore/filesystem.cpp
index c7afe702c..8a58f136e 100644
--- a/src/zencore/filesystem.cpp
+++ b/src/zencore/filesystem.cpp
@@ -1029,12 +1029,10 @@ TryCloneFile(const std::filesystem::path& FromPath, const std::filesystem::path&
return false;
# endif // 0
ZEN_UNUSED(FromPath, ToPath);
- ZEN_ERROR("CloneFile() is not implemented on this platform");
return false;
#elif ZEN_PLATFORM_MAC
/* clonefile() syscall if APFS */
ZEN_UNUSED(FromPath, ToPath);
- ZEN_ERROR("CloneFile() is not implemented on this platform");
return false;
#endif // ZEN_PLATFORM_WINDOWS
}
@@ -1063,7 +1061,6 @@ CopyFile(const std::filesystem::path& FromPath, const std::filesystem::path& ToP
if (Options.EnableClone)
{
Success = TryCloneFile(FromPath.native(), ToPath.native());
-
if (Success)
{
return true;
@@ -1072,6 +1069,9 @@ CopyFile(const std::filesystem::path& FromPath, const std::filesystem::path& ToP
if (Options.MustClone)
{
+#if ZEN_PLATFORM_MAC || ZEN_PLATFORM_LINUX
+ ZEN_ERROR("CloneFile() is not implemented on this platform");
+#endif // ZEN_PLATFORM_MAC || ZEN_PLATFORM_LINUX
return false;
}