IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /docs/manual/basics.md). For the complete Mojo documentation index, see llms.txt.
Skip to main content
Version: Nightly
For the complete Mojo documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /docs/manual/basics.md).

PathLike

A trait representing file system paths.

Implemented traits

AnyType

Required methods

__fspath__

__fspath__(self: _Self) -> String

Return the file system path representation of the object.

Returns:

String: The file system path representation as a string.