Fix for Linux

Former-commit-id: 8cddb6d53f658144f8659adbd7ecab67eb5a41a2
This commit is contained in:
Gawaboumga
2015-12-30 15:59:08 +01:00
parent 15e4fe1453
commit 3247435e08
4 changed files with 7 additions and 7 deletions

View File

@@ -70,9 +70,8 @@ namespace Nz
bool DirectoryImpl::Create(const String& dirPath)
{
mode_t permissions; // TODO: check permissions
return mkdir(dirPath.GetConstBuffer(), permissions) != -1;;
mode_t permissions = S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH; // TODO: check permissions, no right to execute but read and write for every others.
return mkdir(dirPath.GetConstBuffer(), permissions) != -1;
}
bool DirectoryImpl::Exists(const String& dirPath)