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

std::filesystem::create_directories for createDirs

The implementation of `nix::createDirs` allows it to be a simple wrapper
around `std::filesystem::create_directories` as its return value is not
used anywhere.
This commit is contained in:
siddhantCodes 2024-06-09 19:49:39 +05:30
parent e1b3716d50
commit 25b0242ca6
3 changed files with 7 additions and 29 deletions

View file

@ -107,8 +107,8 @@ ReadlineLikeInteracter::Guard ReadlineLikeInteracter::init(detail::ReplCompleter
rl_readline_name = "nix-repl";
try {
createDirs(dirOf(historyFile));
} catch (SystemError & e) {
logWarning(e.info());
} catch (std::filesystem::filesystem_error & e) {
warn(e.what());
}
#ifndef USE_READLINE
el_hist_size = 1000;