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);
        }
    }