/** * 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); }
/** * Create a directory. * * @param string $path * @return bool * @static */ public static function makeDirectory($path) { return \Illuminate\Filesystem\FilesystemAdapter::makeDirectory($path); }