Function DebugFsStreamWrapper->rename
Definitions
sources/debug_fs.php
- Renames a file.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: bool
Parameters
Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
---|---|---|---|---|---|---|---|
$path_from | PATH | No | No | required parameter | N/A | N/A | Old name |
$path_to | PATH | No | No | required parameter | N/A | N/A | New name |
Returns
- Success status
- Type: boolean
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Renames a file.
*
* @param PATH $path_from Old name
* @param PATH $path_to New name
* @return boolean Success status
*/
public function rename(string $path_from, string $path_to) : bool
* Renames a file.
*
* @param PATH $path_from Old name
* @param PATH $path_to New name
* @return boolean Success status
*/
public function rename(string $path_from, string $path_to) : bool