From 6e382592702534bb530f5610f19f694d3b4e5429 Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Mon, 1 Jun 2009 00:01:32 +0000 Subject: Add a 'flat' option to FSDirectory to allow searching recursively for files in subdirectories svn-id: r41090 --- common/archive.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'common/archive.cpp') diff --git a/common/archive.cpp b/common/archive.cpp index a39d78dd9e..86ae5b6795 100644 --- a/common/archive.cpp +++ b/common/archive.cpp @@ -111,16 +111,16 @@ void SearchSet::add(const String &name, Archive *archive, int priority, bool aut } -void SearchSet::addDirectory(const String &name, const String &directory, int priority, int depth) { +void SearchSet::addDirectory(const String &name, const String &directory, int priority, int depth, bool flat) { FSNode dir(directory); - addDirectory(name, dir, priority, depth); + addDirectory(name, dir, priority, depth, flat); } -void SearchSet::addDirectory(const String &name, const FSNode &dir, int priority, int depth) { +void SearchSet::addDirectory(const String &name, const FSNode &dir, int priority, int depth, bool flat) { if (!dir.exists() || !dir.isDirectory()) return; - add(name, new FSDirectory(dir, depth), priority); + add(name, new FSDirectory(dir, depth, flat), priority); } -- cgit v1.2.3