public function setOutputPath($path)
    {
        $outpath = $path;
        if (!file_exists($outpath)) {
            if (!mkdir($outpath, 0755, true)) {
                throw new BadOutputPathException(
          sprintf(
            'Output path %s does not exist and could not be created!',
            $outpath
          ),
          $outpath
        );
            }
        } else {
            if (!is_dir(realpath($outpath))) {
                throw new BadOutputPathException(
          sprintf(
            'The argument to `output` is expected to the a directory, but got %s!',
            $outpath
          ),
          $outpath
        );
            }
        }
        $this->outputPath = $outpath;
    }
public function setOutputPath($path)
    {
        $outpath = $path;
        if (!file_exists($outpath)) {
            if (!mkdir($outpath, 0755, true)) {
                throw new BadOutputPathException(
          sprintf(
            'Output path %s does not exist and could not be created!',
            $outpath
          ),
          $outpath
        );
            }
        } else {
            if (!is_dir(realpath($outpath))) {
                throw new BadOutputPathException(
          sprintf(
            'The argument to `output` is expected to the a directory, but got %s!',
            $outpath
          ),
          $outpath
        );
            }
        }
        $this->outputPath = $outpath;
    }
public function setOutputPath ( $ path ) { $ outpath = $ path ; if ( ! file_exists ( $ outpath ) ) { if ( ! mkdir ( $ outpath , 0755 , true ) ) { throw new BadOutputPathException ( sprintf ( 'Output path %s does not exist and could not be created!' , $ outpath ) , $ outpath ) ; } } else { if ( ! is_dir ( realpath ( $ outpath ) ) ) { throw new BadOutputPathException ( sprintf ( 'The argument to `output` is expected to the a directory, but got %s!' , $ outpath ) , $ outpath ) ; } } $ this -> outputPath = $ outpath ; }
Verify that the specified output path exists or can be created,
then sets the output path.

@param string $path Output path relative to %paths.base%
Verify that the specified output path exists or can be created then sets the output path .