1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-12 05:26:02 +01:00

Fix windows build

PR #12767 accidentally broke it.

(cherry picked from commit 99041b4d84)
This commit is contained in:
John Ericson 2025-03-28 13:15:21 -04:00
parent 8adc1f3011
commit d92b509bda
3 changed files with 6 additions and 8 deletions

View file

@ -419,12 +419,12 @@ void createDir(const Path & path, mode_t mode)
throw SysError("creating directory '%1%'", path);
}
void createDirs(const Path & path)
void createDirs(const fs::path & path)
{
try {
fs::create_directories(path);
} catch (fs::filesystem_error & e) {
throw SysError("creating directory '%1%'", path);
throw SysError("creating directory '%1%'", path.string());
}
}