mirror of
https://github.com/SociallyDev/Spaces-API.git
synced 2025-07-14 17:13:01 -07:00
Allowed passing validation flag to Space::file()
This commit is contained in:
parent
3a32727c28
commit
c52d22a70e
4 changed files with 194 additions and 235 deletions
|
@ -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**
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue