WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit cb95dae

Browse files
committed
Add more progress updates.
1 parent dcc2b3a commit cb95dae

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Dir.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,17 @@
3636
#include <algorithm>
3737
#include <filesystem>
3838

39+
#include "Progress.h"
40+
3941
Dir::Dir(const std::string &name, bool recursive) : index(0) {
4042
if (recursive) {
4143
for (const auto &p : std::filesystem::recursive_directory_iterator(name)) {
44+
Progress::update();
4245
entries.push_back(p);
4346
}
4447
} else {
4548
for (const auto &p : std::filesystem::directory_iterator(name)) {
49+
Progress::update();
4650
entries.push_back(p);
4751
}
4852
}

0 commit comments

Comments
 (0)