Zend\Filter\File\Rename::getNewName
Returns only the new filename without moving it But existing files will be erased when the overwrite option is true
Signature
public function getNewName(string
$value,
[bool
$source = false] )
Parameters
$value
— string- Full path of file to change
$source
— object- Return internal informations
Returns
- string
- The new filename which has been set
Errors/Exceptions
-
InvalidArgumentException
- If the target file already exists.