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