summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@spawned.biz>2021-11-23 00:39:46 +0100
committerJoel Klinghed <the_jk@spawned.biz>2021-11-23 00:39:46 +0100
commit4f00b3eb286104b9d9ca93f502cc71b52ad63d97 (patch)
treee0545f83e7888588cb34c7f4fb7e8226d6c7b287
parent8e5cbd481334579f3b9da6eb396d13bdef7b9210 (diff)
Ignore media in backup directory
-rw-r--r--src/travel.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/travel.cc b/src/travel.cc
index 57d226a..6b3feb2 100644
--- a/src/travel.cc
+++ b/src/travel.cc
@@ -93,8 +93,11 @@ public:
// Called on any thread.
bool include_dir(std::string_view name, uint16_t depth) const override {
- if (depth > 0)
+ if (depth > 0) {
+ if (name == "backup")
+ return false;
return FilesFinder::Delegate::include_dir(name, depth);
+ }
return valid_trip_id(name);
}