protected function checkFolderPermission($path, $perm) { return $this->getPermission($path) >= $perm; }