public function getIsFolder()
{
return empty($this->pathParts[count($this->pathParts) - 1]);
}
public function updateFolder(Path $p) { if (!$p->getIsFolder()) { throw new MetadataStorageException('not a folder'); } return $this->updateDocument($p, null); }