فهرست منبع

BUG: undo last bug fix because it breaks cmake, rebuild_cache on ParaView gets tons of errors about not being able to create the bin directory

Bill Hoffman 21 سال پیش
والد
کامیت
32ccf38c58
1فایلهای تغییر یافته به همراه1 افزوده شده و 7 حذف شده
  1. 1 7
      Source/kwsys/SystemTools.cxx

+ 1 - 7
Source/kwsys/SystemTools.cxx

@@ -235,15 +235,9 @@ const char* SystemTools::GetExecutableExtension()
 
 bool SystemTools::MakeDirectory(const char* path)
 {
-  if(SystemTools::FileIsDirectory(path))
-    {
-    return true;
-    }
-
-  // Do not make a directory on top of a file.
   if(SystemTools::FileExists(path))
     {
-    return false;
+    return true;
     }
   kwsys_stl::string dir = path;
   if(dir.size() == 0)