aboutsummaryrefslogtreecommitdiffhomepage
path: root/td/telegram/files/FileStatsWorker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'td/telegram/files/FileStatsWorker.cpp')
-rw-r--r--td/telegram/files/FileStatsWorker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/td/telegram/files/FileStatsWorker.cpp b/td/telegram/files/FileStatsWorker.cpp
index 81446eca3..1f5e001da 100644
--- a/td/telegram/files/FileStatsWorker.cpp
+++ b/td/telegram/files/FileStatsWorker.cpp
@@ -112,7 +112,7 @@ void scan_fs(CancellationToken &token, CallbackT &&callback) {
if (token) {
return WalkPath::Action::Abort;
}
- if (type != WalkPath::Type::NotDir) {
+ if (type != WalkPath::Type::RegularFile) {
return WalkPath::Action::Continue;
}
auto r_stat = stat(path);