src/Pinocchio/Worker.php
public function createOutputDir()
    {
        $outputDir = $this->configuration->get('output');

        if (!is_writable($outputDir)) {
            @mkdir($outputDir, 0777, true);

            if (!is_writable($outputDir)) {
                throw new \RuntimeException("Output directory {$outputDir} is not writable.");
            }
        }
    }
public function createOutputDir()
    {
        $outputDir = $this->configuration->get('output');

        if (!is_writable($outputDir)) {
            @mkdir($outputDir, 0777, true);

            if (!is_writable($outputDir)) {
                throw new \RuntimeException("Output directory {$outputDir} is not writable.");
            }
        }
    }
public function createOutputDir ( ) { $ outputDir = $ this -> configuration -> get ( 'output' ) ; if ( ! is_writable ( $ outputDir ) ) { @ mkdir ( $ outputDir , 0777 , true ) ; if ( ! is_writable ( $ outputDir ) ) { throw new \ RuntimeException ( "Output directory {$outputDir} is not writable." ) ; } } }
Create - if needed - the output directory provided by the configuration.

@throws \RuntimeException If the directory cannot be created.
Create - if needed - the output directory provided by the configuration .