Skip to main content

Module path

Module path 

Source
Expand description

Path helpers.

Functionsยง

normalize
Normalize path by resolving . and .. components lexically (without touching the file system). Absolute paths that walk above the root are clamped at the root.
stem_ext
Return the file stem and extension as (stem, ext). Both are "" when the component is absent.
with_extension
Replace the extension of path with new_ext. If new_ext is empty the extension (and its leading .) is removed.