aboutsummaryrefslogtreecommitdiff
path: root/src/core/file_sys/disk_archive.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2016-10-03 20:34:56 -0400
committerGitHub <noreply@github.com>2016-10-03 20:34:56 -0400
commit7ed97fb89aa8cfe39a36f1958de61e69b2e5026c (patch)
tree779a58d37d20674d97b648b9546413c1ce8f7d6a /src/core/file_sys/disk_archive.cpp
parent49b10339bf87ce69dafee78eb3957fb6d51424d8 (diff)
parent257e7afb79293012afed68ea21703dcf51b7d78a (diff)
Merge pull request #2106 from wwylele/delete-recursive
FS: implement DeleteDirectoryRecursively
Diffstat (limited to 'src/core/file_sys/disk_archive.cpp')
-rw-r--r--src/core/file_sys/disk_archive.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/file_sys/disk_archive.cpp b/src/core/file_sys/disk_archive.cpp
index 0f66998e1..2f05af361 100644
--- a/src/core/file_sys/disk_archive.cpp
+++ b/src/core/file_sys/disk_archive.cpp
@@ -51,6 +51,10 @@ bool DiskArchive::DeleteDirectory(const Path& path) const {
return FileUtil::DeleteDir(mount_point + path.AsString());
}
+bool DiskArchive::DeleteDirectoryRecursively(const Path& path) const {
+ return FileUtil::DeleteDirRecursively(mount_point + path.AsString());
+}
+
ResultCode DiskArchive::CreateFile(const FileSys::Path& path, u64 size) const {
std::string full_path = mount_point + path.AsString();