Jelajahi Sumber

Fixed File class

- extended "_mkdir" method by respecting apple
specific mkdir call
Patrick 4 tahun lalu
induk
melakukan
7434f7d394
1 mengubah file dengan 4 tambahan dan 0 penghapusan
  1. 4 0
      source/io/File.cpp

+ 4 - 0
source/io/File.cpp

@@ -189,6 +189,10 @@ int ls_std::File::_mkdir(const std::string& path) {
     result = mkdir(path.c_str(), 0777);
   #endif
 
+  #ifdef __APPLE__
+    result = mkdir(path.c_str(), 0777);
+  #endif
+
   return result;
 }