toUnixSystemPathFormat function

String toUnixSystemPathFormat(
  1. String path
)

Replaces all backslashes in path with forward slashes.

Implementation

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