Skip to main content
Version: Nightly

cwd

cwd() -> Path

Gets the current directory.

Example:

from std.pathlib import cwd

var string_path = cwd()
print(string_path)

Returns:

Path: The current directory.

Raises:

If the operation fails.