diff options
| author | wwylele <wwylele@gmail.com> | 2016-10-02 11:29:04 +0800 |
|---|---|---|
| committer | wwylele <wwylele@gmail.com> | 2016-10-02 11:29:16 +0800 |
| commit | 96b0e9476bdd010051bec427d365b49437801f4d (patch) | |
| tree | 6a80eef8c0fbbf7e891755a102fcc8674efb1f26 /src/core/file_sys/archive_backend.h | |
| parent | 4b14e17b18e20f7f8077f0c7efc0e3a44ca8ca2a (diff) | |
fs: implement DeleteDirectoryRecursively
Diffstat (limited to 'src/core/file_sys/archive_backend.h')
| -rw-r--r-- | src/core/file_sys/archive_backend.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/file_sys/archive_backend.h b/src/core/file_sys/archive_backend.h index d69c3c785..06b8f2ed7 100644 --- a/src/core/file_sys/archive_backend.h +++ b/src/core/file_sys/archive_backend.h @@ -112,6 +112,13 @@ public: virtual bool DeleteDirectory(const Path& path) const = 0; /** + * Delete a directory specified by its path and anything under it + * @param path Path relative to the archive + * @return Whether the directory could be deleted + */ + virtual bool DeleteDirectoryRecursively(const Path& path) const = 0; + + /** * Create a file specified by its path * @param path Path relative to the Archive * @param size The size of the new file, filled with zeroes |
