aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/archive.cpp4
-rw-r--r--common/archive.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/common/archive.cpp b/common/archive.cpp
index 40c2f01ee6..96ead55abd 100644
--- a/common/archive.cpp
+++ b/common/archive.cpp
@@ -156,13 +156,13 @@ SeekableReadStream *FSDirectory::openFile(const String &name) {
return stream;
}
-FSDirectory *FSDirectory::getSubDirectory(const String &name) {
+FSDirectory *FSDirectory::getSubDirectory(const String &name, int depth) {
if (name.empty() || !_node.isDirectory()) {
return 0;
}
FSNode node = lookupCache(_subDirCache, name);
- return new FSDirectory(node);
+ return new FSDirectory(node, depth);
}
void FSDirectory::cacheDirectoryRecursive(FSNode node, int depth, const String& prefix) {
diff --git a/common/archive.h b/common/archive.h
index 2fc86b1b57..c8d22124fd 100644
--- a/common/archive.h
+++ b/common/archive.h
@@ -164,7 +164,7 @@ public:
* Create a new FSDirectory pointing to a sub directory of the instance.
* @return a new FSDirectory instance
*/
- FSDirectory *getSubDirectory(const String &name);
+ FSDirectory *getSubDirectory(const String &name, int depth = 1);
virtual bool hasFile(const String &name);
virtual int listMatchingMembers(ArchiveMemberList &list, const String &pattern);