private function setOutputDirectory()
    {
        $outputDirectory = $this->config->get('outputDir');

        //Try to create output dir if non existing
        if (is_dir($outputDirectory) == false) {
            if (mkdir($outputDirectory, 0777, true) == false) {
                throw new Exception('Could not create output directory and it does not exist!');
            }
        }

        $this->dir = $outputDirectory;
    }
private function setOutputDirectory()
    {
        $outputDirectory = $this->config->get('outputDir');

        //Try to create output dir if non existing
        if (is_dir($outputDirectory) == false) {
            if (mkdir($outputDirectory, 0777, true) == false) {
                throw new Exception('Could not create output directory and it does not exist!');
            }
        }

        $this->dir = $outputDirectory;
    }
private function setOutputDirectory ( ) { $ outputDirectory = $ this -> config -> get ( 'outputDir' ) ; //Try to create output dir if non existing if ( is_dir ( $ outputDirectory ) == false ) { if ( mkdir ( $ outputDirectory , 0777 , true ) == false ) { throw new Exception ( 'Could not create output directory and it does not exist!' ) ; } } $ this -> dir = $ outputDirectory ; }
Sets the output directory, creates it if needed
This must be called before saving a file

@throws Exception If the dir can't be created and dont already exists
Sets the output directory creates it if needed This must be called before saving a file