mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-09 20:08:57 +03:00
NK-107 - RemoveFile -> DeleteFileFromPath
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user