diff --git a/Nuake/src/Core/FileSystem.cpp b/Nuake/src/Core/FileSystem.cpp index c7d15487..a7b1c642 100644 --- a/Nuake/src/Core/FileSystem.cpp +++ b/Nuake/src/Core/FileSystem.cpp @@ -174,12 +174,12 @@ namespace Nuake fileWriter.close(); } - int FileSystem::DeleteFileFromPath(const std::string& path) + uintmax_t FileSystem::DeleteFileFromPath(const std::string& path) { return std::remove(path.c_str()); } - int FileSystem::DeleteFolder(const std::string& path) + uintmax_t FileSystem::DeleteFolder(const std::string& path) { return std::filesystem::remove_all(path.c_str()); } diff --git a/Nuake/src/Core/FileSystem.h b/Nuake/src/Core/FileSystem.h index 8327e343..98ff2f74 100644 --- a/Nuake/src/Core/FileSystem.h +++ b/Nuake/src/Core/FileSystem.h @@ -47,8 +47,8 @@ namespace Nuake static bool BeginWriteFile(const std::string path); static bool WriteLine(const std::string line); static void EndWriteFile(); - static int DeleteFileFromPath(const std::string& path); - static int DeleteFolder(const std::string& path); + static uintmax_t DeleteFileFromPath(const std::string& path); + static uintmax_t DeleteFolder(const std::string& path); }; class File