| Name | Type | Description |
|---|---|---|
path* | str | Path string that may use backslash separators. |
Normalize backslash separators to forward slashes for PurePosixPath use.
Backends running on Windows return OS-native paths using backslashes.
PurePosixPath treats backslashes as literal filename characters,
so PurePosixPath(r"C:\a\b").name yields the full string instead
of "b". Normalize before constructing a PurePosixPath.
This is best-effort: a POSIX directory literally named with a backslash
will also be rewritten. That trade-off is accepted because such filenames
are vanishingly rare in practice and the alternative (gating on os.sep)
fails when a Windows-style path is handed to a non-Windows process.