formatFilePath static method

String formatFilePath(
  1. String path
)

Format a file path.

Implementation

static String formatFilePath(String path) {
  path = path.replaceAll('\\\\', '/');
  path = path.replaceAll('\\', '/');

  return '/$path';
}