Browse Source

Fixed File class

- extended "_mkdir" method by respecting apple
specific mkdir call
Patrick 4 năm trước cách đây
mục cha
commit
7434f7d394
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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;
 }