diff options
| author | bunnei <bunneidev@gmail.com> | 2014-12-04 22:07:47 -0500 |
|---|---|---|
| committer | bunnei <bunneidev@gmail.com> | 2014-12-04 22:07:47 -0500 |
| commit | 5056329a8003115f61859b97c2fc6ef2f460a0d3 (patch) | |
| tree | 9434ac214d06a5d55ff20848f57cb981647991dc /src/core/file_sys/archive_romfs.h | |
| parent | 21d183e1e6ddc93960a7f7f049e74d3b51186ddc (diff) | |
| parent | 139a4d91d9e8482d8ceeef591b08ab20b0f7e8ee (diff) | |
Merge pull request #222 from archshift/renamexyz
Implemented RenameFile and RenameDirectory in FS:USER
Diffstat (limited to 'src/core/file_sys/archive_romfs.h')
| -rw-r--r-- | src/core/file_sys/archive_romfs.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/core/file_sys/archive_romfs.h b/src/core/file_sys/archive_romfs.h index 0649dde99..222bdc356 100644 --- a/src/core/file_sys/archive_romfs.h +++ b/src/core/file_sys/archive_romfs.h @@ -44,6 +44,14 @@ public: bool DeleteFile(const FileSys::Path& path) const override; /** + * Rename a File specified by its path + * @param src_path Source path relative to the archive + * @param dest_path Destination path relative to the archive + * @return Whether rename succeeded + */ + bool RenameFile(const FileSys::Path& src_path, const FileSys::Path& dest_path) const override; + + /** * Delete a directory specified by its path * @param path Path relative to the archive * @return Whether the directory could be deleted @@ -58,6 +66,14 @@ public: bool CreateDirectory(const Path& path) const override; /** + * Rename a Directory specified by its path + * @param src_path Source path relative to the archive + * @param dest_path Destination path relative to the archive + * @return Whether rename succeeded + */ + bool RenameDirectory(const FileSys::Path& src_path, const FileSys::Path& dest_path) const override; + + /** * Open a directory specified by its path * @param path Path relative to the archive * @return Opened directory, or nullptr |
