diff options
author | archshift <admin@archshift.com> | 2014-11-11 10:37:26 -0800 |
---|---|---|
committer | archshift <admin@archshift.com> | 2014-11-23 00:33:43 -0800 |
commit | 8aeadbd95a85e2d42d282897d7d286d645d61f27 (patch) | |
tree | 5cc15bf131a6cfb3e6a0834e07ca2d007f612a7e /src/core/file_sys/archive_sdmc.h | |
parent | b66859714bda5968e36fed47a2ff8516bcfd2248 (diff) |
Added DeleteFile and DeleteDirectory functions to FS:USER and the archives.
Diffstat (limited to 'src/core/file_sys/archive_sdmc.h')
-rw-r--r-- | src/core/file_sys/archive_sdmc.h | 14 |
1 files changed, 14 insertions, 0 deletions
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 @@ -41,6 +41,20 @@ public: std::unique_ptr<File> 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 * @return Whether the directory could be created |