More generalistaion for ResourceFolderModels

Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
TheKodeToad 2023-09-01 00:27:05 +01:00
parent 93876e27f8
commit ee48766996
No known key found for this signature in database
GPG key ID: 5E39D70B4C93C38E
13 changed files with 90 additions and 152 deletions

View file

@ -99,8 +99,7 @@ class Resource : public QObject {
}
// Delete all files of this resource.
auto destroy(bool attemptTrash = true) -> bool;
auto destroy(QDir& index_dir, bool preserve_metadata = false, bool attempt_trash = true) -> bool;
auto destroy(const QDir& index_dir, bool preserve_metadata = false, bool attempt_trash = true) -> bool;
[[nodiscard]] auto isSymLink() const -> bool { return m_file_info.isSymLink(); }