From 952d925c47e31b49066021cad7601ae21dc1d14f Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Fri, 29 Jan 2016 20:09:35 +0100 Subject: [PATCH] Dont check that the values in skippedPaths exist like we do with topdirs, they are wildcard exprs! --- src/index/recollindex.cpp | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/src/index/recollindex.cpp b/src/index/recollindex.cpp index ca55c2be..977c9cce 100644 --- a/src/index/recollindex.cpp +++ b/src/index/recollindex.cpp @@ -325,25 +325,8 @@ static bool checktopdirs(RclConfig *config, vector& nonexist) } } - // Check skippedPaths too, but only the user part (shallow==true), not - // the default values (e.g. /media, which might not exist). - if (config->getConfParam("skippedPaths", &tdl, true)) { - for (vector::iterator it = tdl.begin(); it != tdl.end(); it++) { - *it = path_tildexpand(*it); - if (!path_exists(*it)) { - nonexist.push_back(*it); - } - } - } + // We'd like to check skippedPaths too, but these are wildcard exprs, so reasonably can't - if (config->getConfParam("daemSkippedPaths", &tdl, true)) { - for (vector::iterator it = tdl.begin(); it != tdl.end(); it++) { - *it = path_tildexpand(*it); - if (!path_exists(*it)) { - nonexist.push_back(*it); - } - } - } return true; }