diff options
| author | Mikaƫl Capelle <capelle.mikael@gmail.com> | 2021-05-20 20:21:17 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-20 20:21:17 +0200 |
| commit | e8149a4b42d4c63ba51f47c17f77114eff5890c7 (patch) | |
| tree | 0c40e8ed2f938a2b354ad84f8decbd71b78b2138 /src/qdirfiletree.h | |
| parent | d531245dea21fcc7a6410282fd65781dddb79cfb (diff) | |
| parent | c44b1cb3a3c27811cb98f4d1a645a75b81dda673 (diff) | |
Merge pull request #1523 from Holt59/ignore-meta-filetree
Add option to ignore root meta.ini when creating IFileTree for QDir.
Diffstat (limited to 'src/qdirfiletree.h')
| -rw-r--r-- | src/qdirfiletree.h | 4 |
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: |
