Пример #1
0
 /**
  * Create a new directory.
  *
  * @param $folder
  *
  * @return bool|string
  */
 public function createDirectory($folder)
 {
     $folder = $this->cleanFolder($folder);
     if ($this->disk->exists($folder)) {
         return "Folder '{$folder}' aleady exists.";
     }
     return $this->disk->makeDirectory($folder);
 }
Пример #2
0
 /**
  * Create a directory.
  *
  * @param string $path
  * @return bool 
  * @static 
  */
 public static function makeDirectory($path)
 {
     return \Illuminate\Filesystem\FilesystemAdapter::makeDirectory($path);
 }