We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9d5365 commit ad4ce11Copy full SHA for ad4ce11
src/utils/File.cpp
@@ -104,8 +104,9 @@ int File::createDirPath() {
104
while (pos != std::string::npos) {
105
std::string dir = _path.substr(0, pos);
106
if (dir != "" && !File(dir).exists())
107
- if (mkdir(dir.c_str(), 0755) != 0)
108
- return -1; // TODO: Possibly find alternative
+ if (mkdir(dir.c_str(), 0755) !=
+ 0) // Needed only for non subject bonus functionality
109
+ return -1;
110
pos = _path.find_first_of('/', pos + 1);
111
}
112
return 0;
0 commit comments