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

use path for from arg in nix::copyFile

This commit is contained in:
siddhantCodes 2024-05-13 16:10:21 +05:30
parent ccf94545db
commit 62e1ea2f4b
3 changed files with 13 additions and 13 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 std::filesystem::directory_entry & from, const std::filesystem::path & to, bool andDelete);
void copyFile(const std::filesystem::path & from, const std::filesystem::path & to, bool andDelete);
/**
* Automatic cleanup of resources.