Function to_platform_path

Source
pub fn to_platform_path(path: impl AsRef<str>) -> String
Expand description

toPlatformPath converts the given path to a platform-specific path.

It does this by replacing instances of / and \ with the platform-specific path separator.