diff --git a/src/Files.php b/src/Files.php index ae444d6..b95d2ff 100644 --- a/src/Files.php +++ b/src/Files.php @@ -39,6 +39,25 @@ public function setFormattedName(string $filename, ?FormatterInterface $formatte return $name->getFormattedName(); } + /** + * @param string $filenamePath + * @return bool + * @throws FilesystemException + */ + public function exist(string $filenamePath): bool + { + return $this->fileSystemAdapter->fileExists($filenamePath); + } + + /** + * @param string $filenamePath + * @throws FilesystemException + */ + public function delete(string $filenamePath) + { + $this->fileSystemAdapter->delete($filenamePath); + } + /** * @param string $filenamePath * @param string $contents