File::create()
Creates a new file on disk and returns the File object. The store is used to handle file writing, so it can be replaced by any other way of generating files.
Parameters
Name | Type | Default | Description |
---|---|---|---|
$props * | array |
– | |
$move | bool |
false |
If set to true , the source will be deleted |
Return type
Exceptions
Type | Description |
---|---|
Kirby\Exception\InvalidArgumentException |
|
Kirby\Exception\LogicException |
Parent class
$props
parameter
Name | Type | Description |
---|---|---|
source * | string |
source thingy |