toLocalSystemPathFormat function

String toLocalSystemPathFormat(
  1. String path
)

Replaces all forward slashes in path with the local path separator.

Implementation

String toLocalSystemPathFormat(String path) {
  return path.split(RegExp(r'[\\/]')).join(p.separator);
}