toContextPath function

String toContextPath(
  1. Context context,
  2. String anyPath
)

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);
  }
}