Skip to content

Commit

Permalink
doc: improve doc about files and directories
Browse files Browse the repository at this point in the history
  • Loading branch information
Nek- authored Aug 26, 2021
1 parent 3a7c047 commit 227a487
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
```

0 comments on commit 227a487

Please sign in to comment.