pub fn to_platform_path(path: impl AsRef<str>) -> String
toPlatformPath converts the given path to a platform-specific path.
toPlatformPath
It does this by replacing instances of / and \ with the platform-specific path separator.