mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-15 20:08:54 +03:00
Changed file verification from stat to FileStream::exists
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user