From 227a4871cd0b22c11d59932ed449ec8a4eac0230 Mon Sep 17 00:00:00 2001 From: Maxime Veber Date: Thu, 26 Aug 2021 10:46:01 +0200 Subject: [PATCH] doc: improve doc about files and directories --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index 271f189..462b4f7 100644 --- a/README.md +++ b/README.md @@ -176,6 +176,14 @@ TemporaryFile::setContent(string $content) TemporaryFile::getContent(): string ``` +#### ::getPathname() + +Returns the complete path to the file (ie: `/tmp/generated-folder/filename`) + +```php +TemporaryFile::getPathname(): string +``` + #### ::remove() Removes the file from filesystem. @@ -216,3 +224,11 @@ TemporaryDirectory::remove(bool $force = false): void ``` _If `force` is specified to true, it will remove the directory even if it has files inside._ + +#### ::getPathname() + +Returns the complete path to the folder (ie: `/tmp/folder-name`) + +```php +TemporaryDirectory::getPathname(): string +```