Fix check for whether there is a directory in the path.
This commit is contained in:
parent
ff9d0d75ef
commit
4d9df012f6
@ -229,7 +229,7 @@ bool mpw_mkdirs(const char *filePath) {
|
|||||||
|
|
||||||
// The path to mkdir is the filePath without the last path component.
|
// The path to mkdir is the filePath without the last path component.
|
||||||
char *pathEnd = strrchr( filePath, '/' );
|
char *pathEnd = strrchr( filePath, '/' );
|
||||||
if (pathEnd)
|
if (!pathEnd)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
// Walk the path.
|
// Walk the path.
|
||||||
|
Loading…
Reference in New Issue
Block a user