toWin32Path function

String toWin32Path(
  1. String pth
)

Converts the given path to the win32 form.

On Linux or MacOS, / will be replaced with \.

Implementation

String toWin32Path(String pth) => pth.replaceAll('/', r'\');