mirror of
https://github.com/NixOS/nix
synced 2025-06-27 00:11:17 +02:00
Fix windows build
PR #12767 accidentally broke it.
(cherry picked from commit 99041b4d84
)
This commit is contained in:
parent
004187e8cd
commit
003584e59e
3 changed files with 5 additions and 10 deletions
|
@ -475,12 +475,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());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue