Format a file path.
static String formatFilePath(String path) { path = path.replaceAll('\\\\', '/'); path = path.replaceAll('\\', '/'); return '/$path'; }