toPosixPath function

String toPosixPath(
  1. String pth
)

Converts the given path to the posix form.

On Windows, \ will be replaced with /.

Implementation

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