Browse Source

Fix documentation of overwriting in system::rename().

tags/v2.6.5
Andrew Belt 7 months ago
parent
commit
d1ce1e646d
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      include/system.hpp

+ 2
- 1
include/system.hpp View File

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


Loading…
Cancel
Save