rabin 1 year ago
parent
commit
7d54ab6c65
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/Dever/File.php

+ 2 - 0
src/Dever/File.php

@@ -16,6 +16,8 @@ class File
         $path = dirname($file);
         if (!is_dir($path)) {
             mkdir($path, 0777, true);
+            @chmod($path, 0755);
+            @system('chmod -R 777 ' . $path);
         }
         return $file;
     }