From d1ce1e646dfdf41853ba9481ab56ddd6b7d6a941 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Sat, 21 Jun 2025 16:35:40 -0400 Subject: [PATCH] Fix documentation of overwriting in system::rename(). --- include/system.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/system.hpp b/include/system.hpp index 16172c91..91287ae1 100644 --- a/include/system.hpp +++ b/include/system.hpp @@ -31,7 +31,8 @@ bool isFile(const std::string& path); bool isDirectory(const std::string& path); uint64_t getFileSize(const std::string& path); /** Moves a file or directory. -Does not overwrite the destination. If this behavior is needed, use remove() or removeRecursively() before moving. +If destination exists and both are files, overwrites. +If destination exists and both are directories, overwrites if the destination is empty. Returns whether the rename was successful. */ bool rename(const std::string& srcPath, const std::string& destPath);