Capy-Bearer Documentation

cwd_set

host call

Capy

function cwd_set(path : string)

Description

cwd_set() changes the worker process working directory.

Save the current directory with cwd_get(). Restore it after temporary use.

Parameters

path : the new working directory path

Example

Capy

var old_path := cwd_get()
cwd_set("/tmp")
print(cwd_get(), "\n")
cwd_set(old_path)