Symfony\Component\HttpFoundation\File\File::move
Moves the file to a new location.
Signature
public function move(string
$directory,
[string
$name = null] )
Parameters
$directory
— string- The destination folder
$name
— string- The new file name
Returns
- File
- A File object representing the new file
Errors/Exceptions
-
FileException
- if the target file could not be created