From c44b1cb3a3c27811cb98f4d1a645a75b81dda673 Mon Sep 17 00:00:00 2001 From: Mikaƫl Capelle Date: Wed, 12 May 2021 20:41:41 +0200 Subject: Add option to ignore root meta.ini when creating IFileTree for QDir. --- src/qdirfiletree.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/qdirfiletree.h') 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 makeTree(QDir directory); + static std::shared_ptr makeTree(QDir directory, bool ignoreRootMeta = true); protected: -- cgit v1.3.1