コード例 #1
0
ファイル: Worker.php プロジェクト: elepunk/oven
 /**
  * Set the path for the newly created files
  *
  * @param string $path
  * @param string $output
  * @param boolean $namespace
  * @return string
  */
 protected function setDestination($path, $output, $namespace)
 {
     $filesystem = $this->reader->filesystem();
     if (!$namespace) {
         $directory = Parser::path($output);
         $path = $path . '/' . $directory;
     }
     if (!$filesystem->isDirectory($path)) {
         $filesystem->makeDirectory($path, 0755, true);
     }
     return $path;
 }