public function ensureDirectoryExists($outputFilename)
    {
        $directoryName = dirname($outputFilename);
        @mkdir($directoryName, 0755, true);
        
        //TODO - double-check umask
    
        if (file_exists($directoryName) === false) {
            throw new JigException("Directory $directoryName does not exist and could not be created");
        }
    }
public function ensureDirectoryExists($outputFilename)
    {
        $directoryName = dirname($outputFilename);
        @mkdir($directoryName, 0755, true);
        
        //TODO - double-check umask
    
        if (file_exists($directoryName) === false) {
            throw new JigException("Directory $directoryName does not exist and could not be created");
        }
    }
public function ensureDirectoryExists ( $ outputFilename ) { $ directoryName = dirname ( $ outputFilename ) ; @ mkdir ( $ directoryName , 0755 , true ) ; //TODO - double-check umask if ( file_exists ( $ directoryName ) === false ) { throw new JigException ( "Directory $directoryName does not exist and could not be created" ) ; } }
ensureDirectoryExists by creating it with 0755 permissions and throwing
an exception if it does not exst after that mkdir call.
@param $outputFilename
@throws JigException
ensureDirectoryExists by creating it with 0755 permissions and throwing an exception if it does not exst after that mkdir call .