From 96b0e9476bdd010051bec427d365b49437801f4d Mon Sep 17 00:00:00 2001 From: wwylele Date: Sun, 2 Oct 2016 11:29:04 +0800 Subject: fs: implement DeleteDirectoryRecursively --- src/core/file_sys/disk_archive.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/core/file_sys/disk_archive.cpp') 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(); -- cgit v1.2.3