summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/file_sys/disk_filesystem.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/file_sys/disk_filesystem.cpp b/src/core/file_sys/disk_filesystem.cpp
index 8c6f15bb5..d248c2df4 100644
--- a/src/core/file_sys/disk_filesystem.cpp
+++ b/src/core/file_sys/disk_filesystem.cpp
@@ -58,11 +58,13 @@ ResultVal<std::unique_ptr<StorageBackend>> Disk_FileSystem::OpenFile(const std::
58} 58}
59 59
60ResultCode Disk_FileSystem::DeleteFile(const std::string& path) const { 60ResultCode Disk_FileSystem::DeleteFile(const std::string& path) const {
61 if (!FileUtil::Exists(path)) { 61 std::string full_path = base_directory + path;
62
63 if (!FileUtil::Exists(full_path)) {
62 return ERROR_PATH_NOT_FOUND; 64 return ERROR_PATH_NOT_FOUND;
63 } 65 }
64 66
65 FileUtil::Delete(path); 67 FileUtil::Delete(full_path);
66 68
67 return RESULT_SUCCESS; 69 return RESULT_SUCCESS;
68} 70}