toNativePath function

String toNativePath(
  1. String anyPath
)

Convert any path to the current context mode (typically io), dealing with separators.

typically called with a posix style

on windows: dir/sub will give dir\sub

Implementation

String toNativePath(String anyPath) => toContextPath(context, anyPath);