Signed-off-by: Eelco Dolstra <edolstra@gmail.com>
This commit is contained in:
Eelco Dolstra 2024-08-22 15:26:34 +02:00
parent e8752ca57a
commit 21a164aa03

View file

@ -339,7 +339,7 @@ void recursiveSync(const Path & path)
while (!dirsToEnumerate.empty()) { while (!dirsToEnumerate.empty()) {
auto currentDir = dirsToEnumerate.back(); auto currentDir = dirsToEnumerate.back();
dirsToEnumerate.pop_back(); dirsToEnumerate.pop_back();
for (auto & entry : std::filesystem::directory_iterator(path)) { for (auto & entry : std::filesystem::directory_iterator(currentDir)) {
auto st = entry.symlink_status(); auto st = entry.symlink_status();
if (fs::is_directory(st)) { if (fs::is_directory(st)) {
dirsToEnumerate.emplace_back(entry.path()); dirsToEnumerate.emplace_back(entry.path());