diff options
| author | wwylele <wwylele@gmail.com> | 2016-10-02 11:29:04 +0800 |
|---|---|---|
| committer | wwylele <wwylele@gmail.com> | 2016-10-02 11:29:16 +0800 |
| commit | 96b0e9476bdd010051bec427d365b49437801f4d (patch) | |
| tree | 6a80eef8c0fbbf7e891755a102fcc8674efb1f26 /src/core/file_sys/disk_archive.cpp | |
| parent | 4b14e17b18e20f7f8077f0c7efc0e3a44ca8ca2a (diff) | |
fs: implement DeleteDirectoryRecursively
Diffstat (limited to 'src/core/file_sys/disk_archive.cpp')
| -rw-r--r-- | src/core/file_sys/disk_archive.cpp | 4 |
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(); |
