static List<String> safeSplitPath(String path) { return path.replaceAll('\\', '/').split('/') ..removeWhere((element) => element.isEmpty); }