toContextPath function
Convert any path in the context mode, dealing with separators.
Implementation
String toContextPath(Context context, String anyPath) {
if (context.style == windows.style) {
return toWindowsPath(anyPath);
} else {
return toPosixPath(anyPath);
}
}