From 96b0e9476bdd010051bec427d365b49437801f4d Mon Sep 17 00:00:00 2001 From: wwylele Date: Sun, 2 Oct 2016 11:29:04 +0800 Subject: fs: implement DeleteDirectoryRecursively --- src/core/file_sys/archive_backend.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/core/file_sys/archive_backend.h') 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 @@ -111,6 +111,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 -- cgit v1.2.3