process.current_dir
process.current_dir
Function
Set the subprocess working directory.
Syntax
process(program).current_dir(path)
Parameters
| Parameters | Type | Required | Default value | Description |
|---|---|---|---|---|
| path | String | No | Null | Working directory path. |
Return value
| Type | Description |
|---|---|
| Process | Returns the new process builder. |
Example
cmd = process('cmd').current_dir('@/') result = cmd.get_current_dir() // Output: String echo(type(result))
Notes
- The path will be resolved by the VM according to BT path rules.