mirror of
https://github.com/NixOS/nix.git
synced 2025-11-14 22:42:41 +01:00
use createDirs consistently everywhere
(cherry picked from commit a8217f2642)
This commit is contained in:
parent
ceec04f1e2
commit
d1fe15f43f
3 changed files with 4 additions and 8 deletions
|
|
@ -23,11 +23,7 @@ void builtinUnpackChannel(
|
|||
throw Error("channelName is not allowed to contain filesystem separators, got %1%", channelName);
|
||||
}
|
||||
|
||||
try {
|
||||
fs::create_directories(out);
|
||||
} catch (fs::filesystem_error &) {
|
||||
throw SysError("creating directory '%1%'", out.string());
|
||||
}
|
||||
createDirs(out);
|
||||
|
||||
unpackTarfile(src, out);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue