/** * {@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); } }
/** * {@inheritdoc} */ public function updateId($oldId, $newId) { return $this->fs->tryMove($this->getPath($oldId), $this->getPath($newId)); }