references/sleep-functions/cwd.md

GitHub

cwd

Category: FileSystem

Source: https://sleep.dashnine.org/manual/cwd.html


Synopsis

$ cwd()

returns the current working directory.

Returns

The current working directory.

Examples

Example:

chdir("/etc");
println(cwd());

$handle = openf("passwd");

Output:

/etc

See Also

&chdir