Przeglądaj źródła

Check if directory was actually created

Andy Cedilnik 23 lat temu
rodzic
commit
8fd2ec6e91
1 zmienionych plików z 4 dodań i 0 usunięć
  1. 4 0
      Source/cmSystemTools.cxx

+ 4 - 0
Source/cmSystemTools.cxx

@@ -186,6 +186,10 @@ bool cmSystemTools::MakeDirectory(const char* path)
       return false;
       }
     }
+  if(!cmSystemTools::FileExists(path))
+    {
+    return false;
+    }
   return true;
 }