/**
  * @param Folder $folder
  *
  * @return bool
  *
  * @throws FileManagerException
  */
 public function deleteFolder(Folder $folder)
 {
     $path = $folder->fullPath();
     if (!FileSystem::exists($path)) {
         throw new FileManagerException($this, 'err_folder_not_found');
     }
     if (!Perms::canDelete($path)) {
         throw new FileManagerException($this, 'err_folder_delete_perm');
     }
     return FileSystem::deleteDirectory($path);
 }
 public function readPermsFromPath($path)
 {
     $this->perms = Perms::getFilePerms($path);
 }