import path
| Function | Returns | Description |
|---|---|---|
path.basename(p) | Str | Filename from path |
path.dirname(p) | Path | Directory part |
path.ext(p) | Str | File extension |
path.stem(p) | Str | Filename without extension |
path.join(base, child) | Path | Join path components |
path.normalize(p) | Path | Normalize . and .. segments |
path.is_absolute(p) | Bool | Whether path starts with / |
path.parent(p) | Path | Parent directory |
path.parts(p) | List[Str] | Split path into segments |
The older path_* prefixed names (e.g. path_basename()) have been removed. Use the namespace style above for all code.