fs::rename fixed

Added overwriting policy
sys_fs_rename improved
This commit is contained in:
Nekotekina 2017-08-30 17:14:30 +03:00
parent da3f3fd1fb
commit 010b75251f
5 changed files with 44 additions and 8 deletions

View file

@ -159,7 +159,7 @@ namespace fs
bool create_path(const std::string& path);
// Rename (move) file or directory
bool rename(const std::string& from, const std::string& to);
bool rename(const std::string& from, const std::string& to, bool overwrite);
// Copy file contents
bool copy_file(const std::string& from, const std::string& to, bool overwrite);