Changed file verification from stat to FileStream::exists

This commit is contained in:
emerycp
2023-07-07 18:59:50 -04:00
parent 6b4d0c0f69
commit 97f931fa04

View File

@@ -55,8 +55,7 @@ namespace Nuake
bool Project::FileExist()
{
struct stat buffer{};
return (stat (this->FullPath.c_str(), &buffer) == 0);
return std::filesystem::exists(this->FullPath.c_str());
}
Ref<Project> Project::New(const std::string& Name, const std::string& Description, const std::string& FullPath)