Dmyers\Storage\Adapter\Local::ensureDirExists PHP 메소드

ensureDirExists() 보호된 메소드

protected ensureDirExists ( $path )
    protected function ensureDirExists($path)
    {
        $parts = explode('/', $path);
        unset($parts[count($parts) - 1]);
        $path = implode('/', $parts);
        if (!\File::isDirectory($path)) {
            \File::makeDirectory($path, 0777, true);
        }
    }