diff options
author | Théophane Hufschmitt <theophane.hufschmitt@tweag.io> | 2022-04-13 14:10:36 +0200 |
---|---|---|
committer | Théophane Hufschmitt <theophane.hufschmitt@tweag.io> | 2022-08-03 10:27:25 +0200 |
commit | d71d9e9fbfc972514b0b940181ab7f9e766f41f3 (patch) | |
tree | a8506bbfbada81f76ca460f090f65ef41d3294ca /src/libutil/filesystem.cc | |
parent | a4f0fd633c9ec865d385b34bdc51923c204e7ff0 (diff) |
moveFile -> renameFile
`move` tends to have this `mv` connotation of “I will copy it for you if
needs be”
Diffstat (limited to 'src/libutil/filesystem.cc')
-rw-r--r-- | src/libutil/filesystem.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libutil/filesystem.cc b/src/libutil/filesystem.cc index 198db2832..fee40d09e 100644 --- a/src/libutil/filesystem.cc +++ b/src/libutil/filesystem.cc @@ -37,7 +37,7 @@ void replaceSymlink(const Path & target, const Path & link, throw; } - moveFile(tmp, link); + renameFile(tmp, link); break; } @@ -90,7 +90,7 @@ void copy(const fs::directory_entry & from, const fs::path & to, bool andDelete) } } -void moveFile(const Path & oldName, const Path & newName) +void renameFile(const Path & oldName, const Path & newName) { auto oldPath = fs::path(oldName); auto newPath = fs::path(newName); |