summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys/archive_sdmc.cpp
diff options
context:
space:
mode:
authorarchshift <admin@archshift.com>2014-11-24 10:12:58 +0100
committerarchshift <admin@archshift.com>2014-11-25 00:09:12 +0100
commite5ff01c2cde0fe903140f0215461a68d4f489132 (patch)
tree1ce6d82dcc1d154a98d5931d57c30e12ef0cc18f /src/core/file_sys/archive_sdmc.cpp
parentImplemented RenameFile in FS:USER (diff)
downloadyuzu-e5ff01c2cde0fe903140f0215461a68d4f489132.tar
yuzu-e5ff01c2cde0fe903140f0215461a68d4f489132.tar.gz
yuzu-e5ff01c2cde0fe903140f0215461a68d4f489132.tar.bz2
yuzu-e5ff01c2cde0fe903140f0215461a68d4f489132.tar.lz
yuzu-e5ff01c2cde0fe903140f0215461a68d4f489132.tar.xz
yuzu-e5ff01c2cde0fe903140f0215461a68d4f489132.tar.zst
yuzu-e5ff01c2cde0fe903140f0215461a68d4f489132.zip
Diffstat (limited to 'src/core/file_sys/archive_sdmc.cpp')
-rw-r--r--src/core/file_sys/archive_sdmc.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/core/file_sys/archive_sdmc.cpp b/src/core/file_sys/archive_sdmc.cpp
index 24bc43a02..c8958a0eb 100644
--- a/src/core/file_sys/archive_sdmc.cpp
+++ b/src/core/file_sys/archive_sdmc.cpp
@@ -95,6 +95,16 @@ bool Archive_SDMC::CreateDirectory(const Path& path) const {
}
/**
+ * 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 Archive_SDMC::RenameDirectory(const FileSys::Path& src_path, const FileSys::Path& dest_path) const {
+ return FileUtil::Rename(GetMountPoint() + src_path.AsString(), GetMountPoint() + dest_path.AsString());
+}
+
+/**
* Open a directory specified by its path
* @param path Path relative to the archive
* @return Opened directory, or nullptr