mirror of
https://github.com/kiwix/libkiwix.git
synced 2026-10-26 02:49:20 -04:00
+ port makeDirectory to WIN32
This commit is contained in:
1 parent
8df9c53878
commit
faff227365
2 files changed
+8
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user