Allowed passing validation flag to Space::file()

This commit is contained in:
David Wakelin 2022-11-11 09:55:47 +00:00
parent 3a32727c28
commit c52d22a70e
4 changed files with 194 additions and 235 deletions

View file

@ -180,7 +180,7 @@ Recursively download an entire directory.
**Description**
```php
public file (string $filename)
public file (string $filename, bool $validate = true)
```
Get an instance of \SpacesAPI\File for a given filename
@ -190,6 +190,8 @@ Get an instance of \SpacesAPI\File for a given filename
**Parameters**
* `(string) $filename`
* `(bool) $validate`
: Whether to validate the file exits. Defaults to `true`
**Return Values**