From 0489df84e23173bbe614195f289181cf55493efd Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Mon, 25 Nov 2019 12:12:13 +0100 Subject: [PATCH] Forgot a part of the change for web queue dotfiles prefix change --- src/index/webqueue.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/index/webqueue.cpp b/src/index/webqueue.cpp index a31fc4f0..e240b04e 100644 --- a/src/index/webqueue.cpp +++ b/src/index/webqueue.cpp @@ -45,6 +45,8 @@ using namespace std; +#define DOTFILEPREFIX "_" + // The browser plugin creates a file named .xxx (where xxx is the name // for the main file in the queue), to hold external metadata (http or // created by the plugin). This class reads the .xxx, dotfile, and turns @@ -306,7 +308,7 @@ bool WebQueueIndexer::index() // Finally index the queue FsTreeWalker walker(FsTreeWalker::FtwNoRecurse); - walker.addSkippedName(".*"); + walker.addSkippedName(DOTFILEPREFIX "*"); FsTreeWalker::Status status = walker.walk(m_queuedir, *this); LOGDEB("WebQueueIndexer::processqueue: done: status " << status << "\n"); return true; @@ -374,7 +376,7 @@ WebQueueIndexer::processone(const string &path, return FsTreeWalker::FtwOk; string dotpath = path_cat(path_getfather(path), - string("_") + path_getsimple(path)); + string(DOTFILEPREFIX) + path_getsimple(path)); LOGDEB("WebQueueIndexer: prc1: [" << path << "]\n"); WebQueueDotFile dotfile(m_config, dotpath);