mirror of
https://github.com/NixOS/nix.git
synced 2025-11-14 22:42:41 +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
|
|
@ -1430,7 +1430,7 @@ StorePath LocalStore::addToStoreFromDump(Source & source0, std::string_view name
|
|||
writeFile(realPath, dumpSource);
|
||||
} else {
|
||||
/* Move the temporary path we restored above. */
|
||||
moveFile(tempPath, realPath);
|
||||
renameFile(tempPath, realPath);
|
||||
}
|
||||
|
||||
/* For computing the nar hash. In recursive SHA-256 mode, this
|
||||
|
|
@ -1941,7 +1941,7 @@ void LocalStore::addBuildLog(const StorePath & drvPath, std::string_view log)
|
|||
|
||||
writeFile(tmpFile, compress("bzip2", log));
|
||||
|
||||
moveFile(tmpFile, logPath);
|
||||
renameFile(tmpFile, logPath);
|
||||
}
|
||||
|
||||
std::optional<std::string> LocalStore::getVersion()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue