diff options
Diffstat (limited to 'benchmark/rmdir.cpp')
| -rw-r--r-- | benchmark/rmdir.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/benchmark/rmdir.cpp b/benchmark/rmdir.cpp index 60b8b6c3c..456b3ae6e 100644 --- a/benchmark/rmdir.cpp +++ b/benchmark/rmdir.cpp @@ -14,9 +14,11 @@ int main(int argc, char *argv[]) { } td::CSlice dir(argv[1]); int cnt = 0; - auto status = td::walk_path(dir, [&](td::CSlice path, bool is_dir) { - cnt++; - LOG(INFO) << path << " " << is_dir; + auto status = td::walk_path(dir, [&](td::CSlice path, auto type) { + if (type != td::WalkPath::Type::EnterDir) { + cnt++; + LOG(INFO) << path << " " << (type == td::WalkPath::Type::ExitDir); + } //if (is_dir) { // td::rmdir(path); //} else { |
