if (path.contains("/")) { path = path.replace("/", File.separator); if (path.contains("\\")) { path = path.replace("/", File.separator); return path;
String formattedPath; if (path == null) { formattedPath = ""; } else { File file = new File(path); if (!file.isAbsolute()) { formattedPath = file.getPath(); } else { ...