NK-107 - RemoveFile -> DeleteFileFromPath

This commit is contained in:
emerycp
2023-07-22 13:13:59 -04:00
parent 782f4bbafd
commit a5f85019b9
3 changed files with 3 additions and 3 deletions

View File

@@ -245,7 +245,7 @@ namespace Nuake
if (ImGui::MenuItem("Delete"))
{
if (FileSystem::RemoveFile(file->GetAbsolutePath()) != 0)
if (FileSystem::DeleteFileFromPath(file->GetAbsolutePath()) != 0)
{
Logger::Log("Failed to remove file: " + file->GetRelativePath(), "editor", CRITICAL);
}

View File

@@ -173,7 +173,7 @@ namespace Nuake
fileWriter.close();
}
int FileSystem::RemoveFile(const std::string& path)
int FileSystem::DeleteFileFromPath(const std::string& path)
{
return std::remove(path.c_str());
}

View File

@@ -46,7 +46,7 @@ namespace Nuake
static bool BeginWriteFile(const std::string path);
static bool WriteLine(const std::string line);
static void EndWriteFile();
static int RemoveFile(const std::string& path);
static int DeleteFileFromPath(const std::string& path);
static int DeleteFolder(const std::string& path);
};