+ port makeDirectory to WIN32

This commit is contained in:
kelson42 committed 2011-12-10 18:52:11 +00:00
1 parent 8df9c53878
commit faff227365
2 files changed
+8

No files matched your search

+4
View File
@@ -105,7 +105,11 @@ bool fileExists(const string &path) {
}
bool makeDirectory(const string &path) {
#ifdef _WIN32
int status = _mkdir(path.c_str());
#else
int status = mkdir(path.c_str(), S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH);
#endif
return status == 0;
}