Wrapper.php
public function checkDirectory($path)
    {
        $dir = dirname($path);
        if (!is_dir($dir)) {
            if (false === @mkdir($dir, 0777, true)) {
                throw new RuntimeException(sprintf('Unable to create the "%s" directory', $dir));
            }
        }
    }
public function checkDirectory($path)
    {
        $dir = dirname($path);
        if (!is_dir($dir)) {
            if (false === @mkdir($dir, 0777, true)) {
                throw new RuntimeException(sprintf('Unable to create the "%s" directory', $dir));
            }
        }
    }
public function checkDirectory ( $ path ) { $ dir = dirname ( $ path ) ; if ( ! is_dir ( $ dir ) ) { if ( false === @ mkdir ( $ dir , 0777 , true ) ) { throw new RuntimeException ( sprintf ( 'Unable to create the "%s" directory' , $ dir ) ) ; } } }
Creates the given directory if unexistant

@param string $path

@throws RuntimeException
Creates the given directory if unexistant