From 4d2c544ca90608416e0dfe03b31823d74a974f7c Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sat, 23 Sep 2023 22:15:11 +1000 Subject: [PATCH] FileSystem: Fix DeleteDirectory() on Unix --- src/common/file_system.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/file_system.cpp b/src/common/file_system.cpp index b344a5882..042e4e05c 100644 --- a/src/common/file_system.cpp +++ b/src/common/file_system.cpp @@ -1837,7 +1837,7 @@ bool FileSystem::DeleteDirectory(const char* path) if (stat(path, &sysStatData) != 0 || !S_ISDIR(sysStatData.st_mode)) return false; - return (unlink(path) == 0); + return (rmdir(path) == 0); } std::string FileSystem::GetProgramPath()