mirror of
https://github.com/NixOS/nix
synced 2025-06-27 12:41:15 +02:00
replace all instances of std::filesystem::directory_iterator with DirectoryIterator
This commit is contained in:
parent
7ccc0d591f
commit
1c4496f4e5
16 changed files with 55 additions and 64 deletions
|
@ -30,7 +30,7 @@ void removeOldGenerations(fs::path dir)
|
|||
|
||||
bool canWrite = access(dir.string().c_str(), W_OK) == 0;
|
||||
|
||||
for (auto & i : fs::directory_iterator{dir}) {
|
||||
for (auto & i : DirectoryIterator{dir}) {
|
||||
checkInterrupt();
|
||||
|
||||
auto path = i.path().string();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue