Creating New Project doesn't add .project

This commit is contained in:
emerycp
2023-07-07 18:24:55 -04:00
parent 53e5e9e071
commit 1885f1a853
4 changed files with 25 additions and 11 deletions

View File

@@ -53,6 +53,12 @@ namespace Nuake
projectFile.close();
}
bool Project::Exist()
{
struct stat buffer{};
return (stat (this->FullPath.c_str(), &buffer) == 0);
}
Ref<Project> Project::New(const std::string& Name, const std::string& Description, const std::string& FullPath)
{
return CreateRef<Project>(Name, Description, FullPath);