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);