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

use createDirs consistently everywhere

This commit is contained in:
Jörg Thalheim 2025-03-12 17:49:45 +01:00
parent 6309bbb426
commit a8217f2642
3 changed files with 4 additions and 8 deletions

View file

@ -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);