(PHP 5, PHP 7)
streamWrapper::rename — Renames a file or directory
$path_from
, string $path_to
) : boolThis method is called in response to rename().
Should attempt to rename path_from to
path_to
Nota:
In order for the appropriate error message to be returned this method should not be defined if the wrapper does not support renaming files.
path_fromThe URL to the current file.
path_to
The URL which the path_from should be renamed to.
Retorna TRUE em caso de sucesso ou FALSE em caso de falha.
Emite
E_WARNING se uma chamada a essa função falha
(não implementada, por exemplo).
Nota:
A propriedade streamWrapper::$context é atualizada se um contexto válido é passado no chamador da função.