diff --git a/platform-independent/cli-c/cli/mpw-cli-util.c b/platform-independent/cli-c/cli/mpw-cli-util.c index 323e7b45..e604fc56 100644 --- a/platform-independent/cli-c/cli/mpw-cli-util.c +++ b/platform-independent/cli-c/cli/mpw-cli-util.c @@ -229,7 +229,7 @@ bool mpw_mkdirs(const char *filePath) { // The path to mkdir is the filePath without the last path component. char *pathEnd = strrchr( filePath, '/' ); - if (pathEnd) + if (!pathEnd) return true; // Walk the path.