Skip to content

Kirby 4.3.0

$hasfiles->createFile()

Creates a new file

$hasfiles->createFile(array $props, bool $move = false): Kirby\Cms\File

Parameters

Name Type Default Description
$props * array
$move bool false If set to true, the source will be deleted

Return type

Kirby\Cms\File

Parent class

Kirby\Cms\HasFiles