skeeks\cms\components\storage\ClusterLocal::existsRootPath PHP Method

existsRootPath() public method

public existsRootPath ( ) : boolean
return boolean
    public function existsRootPath()
    {
        if (is_dir($this->rootBasePath)) {
            return true;
        }
        //Создать папку для файлов если ее нет
        $dir = new Dir($this->rootBasePath);
        if ($dir->make()) {
            return true;
        }
        return false;
    }