module documentation
Undocumented
| Function | parse |
Parse a path string from a dataset manifest on the current OS. |
| Function | path |
Serialize a path with forward slashes for portable manifests. |
| Function | resolve |
Resolve a manifest path relative to the directory that contains it. |
Parse a path string from a dataset manifest on the current OS.
Examples
>>> parse_manifest_path("images/cat.jpg").as_posix() 'images/cat.jpg' >>> parse_manifest_path(r"images\\cat.jpg").as_posix() 'images/cat.jpg'
| Parameters | |
value:PathType | Path value read from a manifest. |
| Returns | |
Path | Parsed path. Relative Windows paths are converted to POSIX-style components before constructing the current-platform Path. |
Serialize a path with forward slashes for portable manifests.
Examples
>>> path_to_posix(Path("images") / "cat.jpg") 'images/cat.jpg' >>> path_to_posix(r"images\\cat.jpg") 'images/cat.jpg'
| Parameters | |
value:PathType | Path value to serialize. |
| Returns | |
str | POSIX-style path string. |