summaryrefslogtreecommitdiff
path: root/src/qdirfiletree.h
diff options
context:
space:
mode:
authorMikaël Capelle <capelle.mikael@gmail.com>2021-05-12 20:41:41 +0200
committerMikaël Capelle <capelle.mikael@gmail.com>2021-05-12 20:41:41 +0200
commitc44b1cb3a3c27811cb98f4d1a645a75b81dda673 (patch)
tree6a0aace02c9aeb7db008df28b210b1306f4c8b02 /src/qdirfiletree.h
parent2a5dd6c7cfe3c4b70491c4ababcaa67ae4264f41 (diff)
Add option to ignore root meta.ini when creating IFileTree for QDir.
Diffstat (limited to 'src/qdirfiletree.h')
-rw-r--r--src/qdirfiletree.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/qdirfiletree.h b/src/qdirfiletree.h
index 219a3a6f..e9229bf5 100644
--- a/src/qdirfiletree.h
+++ b/src/qdirfiletree.h
@@ -41,10 +41,12 @@ public:
* @brief Create a new file tree representing the given directory.
*
* @param directory Directory to represent.
+ * @param ignoreRootMeta If true, the meta.ini file in the root folder will
+ * be ignored.
*
* @return a file tree representing the given directory.
*/
- static std::shared_ptr<const QDirFileTree> makeTree(QDir directory);
+ static std::shared_ptr<const QDirFileTree> makeTree(QDir directory, bool ignoreRootMeta = true);
protected: