Function Commandr_fs->change_directory
Definitions
sources/commandr_fs.php
- Change the current working directory. Equivalent to Unix "cd".
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: bool
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $target_directory | array | No | No | required parameter | N/A | N/A | The target directory path |
Returns
- Success?
- Type: boolean
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Change the current working directory. Equivalent to Unix "cd".
*
* @param array $target_directory The target directory path
* @return boolean Success?
*/
public function change_directory(array $target_directory) : bool
* Change the current working directory. Equivalent to Unix "cd".
*
* @param array $target_directory The target directory path
* @return boolean Success?
*/
public function change_directory(array $target_directory) : bool
