mirror of
https://github.com/kiwix/libkiwix.git
synced 2026-10-26 02:49:20 -04:00
+ bool makeDirectory(const string &path);
This commit is contained in:
1 parent
cfa00c33f2
commit
f2280a6b02
2 files changed
+6
No files matched your search
@@ -93,3 +93,8 @@ bool fileExists(const string &path) {
|
||||
fin.close();
|
||||
return flag;
|
||||
}
|
||||
|
||||
bool makeDirectory(const string &path) {
|
||||
int status = mkdir(path.c_str(), S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH);
|
||||
return status == 0;
|
||||
}
|
||||
Reference in new issue
Block a user