Esempio n. 1
0
 /**
  * {@inheritdoc}
  */
 public function delete($path)
 {
     try {
         $path = $this->getAbsolutePath($path);
         if (!$this->filesystem->exists($path)) {
             throw Exception\NotFoundException::pathNotFound($path);
         }
         $this->filesystem->delete($path, true);
     } catch (FileSystemException $e) {
         throw Exception\StorageException::deleteError($path, $e);
     }
 }
Esempio n. 2
0
 /**
  * {@inheritdoc}
  */
 public function updateId($oldId, $newId)
 {
     return $this->fs->tryMove($this->getPath($oldId), $this->getPath($newId));
 }