Win32. Use when you want to hardcode platform into Path functions.
If you are unsure what platform you need, use fromSeparator to infer it.
Path.Platform.fromString Path.Platform.win32 "c:/A/B/C.elm"Posix. Use when you want to hardcode platform into Path functions.
If you are unsure what platform you need, use fromSeparator to infer it.
Path.Platform.fromString Path.Platform.posix "/A/B/C.elm"Get platform based on a separator. This will default to Posix!
You can find the separator using Node with path.sep,
in Python with os.path.sep, and pass it in to Elm.
Path.Platform.fromSeparator "/" == Path.Platform.posix
Path.Platform.fromSeparator "\\" == Path.Platform.win32
Path.Platform.fromSeparator "lkjankljsAKSKJ" == Path.Platform.posixThe separator of a platform.
Path.Platform.separator Path.Platform.posix == "/"
Path.Platform.separator Path.Platform.win32 == "\\"Delimiter of a platform.
Path.Platform.separator Path.Platform.posix == ":"
Path.Platform.separator Path.Platform.win32 == ";"
Represents a platform used for parsing the strings, either Win32 or Posix. Create or infer platforms with
win32,posixandfromSeparator