Esempio n. 1
0
 /**
  * Deletes a file from filespace and if directory are empty it will be deleted too.
  *
  * @see    library/Opus/Model/Opus_Model_AbstractDb#doDelete()
  * @throws Opus_Storage_Exception if not a file, or empty directory could not be deleted
  * @throws Opus_Storage_FileNotFoundException  if file does not exist
  * @throws Opus_Storage_FileAccessException if file could not be deleted
  * @return void
  */
 public function doDelete($token)
 {
     parent::doDelete($token);
     $this->getStorage()->deleteFile($this->getPathName());
     // TODO: Check return value of removeEmptyDirectory()?
     $this->getStorage()->removeEmptyDirectory();
 }