Skip to content

Commit

Permalink
Fix: MkDirP supports '/' and '\' on Windows
Browse files Browse the repository at this point in the history
fixes #10231
  • Loading branch information
Michael Friedrich committed Mar 11, 2016
1 parent 9e833d7 commit baecdc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/base/utility.cpp
Expand Up @@ -724,7 +724,7 @@ void Utility::MkDirP(const String& path, int mode)
#ifndef _WIN32
pos = path.Find("/", pos + 1);
#else /*_ WIN32 */
pos = path.Find("\\", pos + 1);
pos = path.FindFirstOf("/\\", pos + 1);
#endif /* _WIN32 */
MkDir(path.SubStr(0, pos), mode);
}
Expand Down

0 comments on commit baecdc3

Please sign in to comment.