From 8aeadbd95a85e2d42d282897d7d286d645d61f27 Mon Sep 17 00:00:00 2001 From: archshift Date: Tue, 11 Nov 2014 10:37:26 -0800 Subject: Added DeleteFile and DeleteDirectory functions to FS:USER and the archives. --- src/core/file_sys/archive_sdmc.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/core/file_sys/archive_sdmc.h') diff --git a/src/core/file_sys/archive_sdmc.h b/src/core/file_sys/archive_sdmc.h index 1f621b3f..8ac06484 100644 --- a/src/core/file_sys/archive_sdmc.h +++ b/src/core/file_sys/archive_sdmc.h @@ -40,6 +40,20 @@ public: */ std::unique_ptr OpenFile(const Path& path, const Mode mode) const override; + /** + * Delete a file specified by its path + * @param path Path relative to the archive + * @return Whether the file could be deleted + */ + bool DeleteFile(const FileSys::Path& path) const override; + + /** + * Delete a directory specified by its path + * @param path Path relative to the archive + * @return Whether the directory could be deleted + */ + bool DeleteDirectory(const FileSys::Path& path) const override; + /** * Create a directory specified by its path * @param path Path relative to the archive -- cgit v1.2.3