List of utility methods to do Path Format
String | formatPath(String inputPath) format Path return new File(inputPath).getAbsolutePath(); |
String | formatPath(String path) format Path if (path.contains("/")) { path = path.replace("/", File.separator); if (path.contains("\\")) { path = path.replace("/", File.separator); return path; |
String | formatPath(String path) Formats a path for display to the user. String formattedPath; if (path == null) { formattedPath = ""; } else { File file = new File(path); if (!file.isAbsolute()) { formattedPath = file.getPath(); } else { ... |