toNativePath function
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);