1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-21 17:59:36 +01:00

replace all instances of std::filesystem::directory_iterator with DirectoryIterator

(cherry picked from commit 1c4496f4e5)
This commit is contained in:
Jörg Thalheim 2025-05-01 09:54:14 +02:00
parent 0f4b17e51f
commit 3d8d19928e
16 changed files with 55 additions and 64 deletions

View file

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