1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-28 01:11:15 +02:00

rename copy -> copyFile and remove old copyFile

the old `copyFile` was just a wrapper that was calling the `copy`
function. This wrapper function is removed and the `copy` function is
renamed to `copyFile`.
This commit is contained in:
siddhantCodes 2024-05-12 19:20:17 +05:30
parent d3b7367c80
commit ccf94545db
3 changed files with 11 additions and 11 deletions

View file

@ -190,7 +190,7 @@ void moveFile(const Path & src, const Path & dst);
* with the guaranty that the destination will be fresh, with no stale inode
* or file descriptor pointing to it).
*/
void copyFile(const Path & oldPath, const Path & newPath, bool andDelete);
void copyFile(const std::filesystem::directory_entry & from, const std::filesystem::path & to, bool andDelete);
/**
* Automatic cleanup of resources.