/**
  * Build the directory for the class if necessary.
  *
  * @param  string  $path
  * @return string
  */
 protected function makeDirectory($path)
 {
     if (!$this->files->isDirectory(dirname($path))) {
         $this->files->makeDirectory(dirname($path), 0777, true, true);
     }
 }
Beispiel #2
0
 /**
  * Create a directory.
  *
  * @param string $path
  * @param int $mode
  * @param bool $recursive
  * @param bool $force
  * @return bool 
  * @static 
  */
 public static function makeDirectory($path, $mode = 511, $recursive = false, $force = false)
 {
     return \October\Rain\Filesystem\Filesystem::makeDirectory($path, $mode, $recursive, $force);
 }