Skip to main content

Mojo package

pathlib

Filesystem path manipulation and navigation.

The pathlib package provides object-oriented filesystem path handling with platform-independent path operations. It offers the Path type for representing and manipulating filesystem paths, along with utilities for path joining, expansion, and directory operations. This package makes working with file paths safer and more intuitive than manual string manipulation.

Use this package for any filesystem path operations including constructing paths, navigating directories, checking file existence, or performing path-related queries in a platform-independent way.

Modules

  • path: Implements Path and related functions.

Was this page helpful?