mirror of
https://github.com/NixOS/nix.git
synced 2025-11-17 07:52:43 +01:00
moveFile -> renameFile
`move` tends to have this `mv` connotation of “I will copy it for you if needs be”
This commit is contained in:
parent
a4f0fd633c
commit
d71d9e9fbf
9 changed files with 13 additions and 13 deletions
|
|
@ -230,7 +230,7 @@ void LocalStore::optimisePath_(Activity * act, OptimiseStats & stats,
|
|||
|
||||
/* Atomically replace the old file with the new hard link. */
|
||||
try {
|
||||
moveFile(tempLink, path);
|
||||
renameFile(tempLink, path);
|
||||
} catch (SysError & e) {
|
||||
if (unlink(tempLink.c_str()) == -1)
|
||||
printError("unable to unlink '%1%'", tempLink);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue