public class SmartFile extends Object
I.e. It is just like getAbsoluteXXX -- but it removes all relative path elements from the path.
| Modifier and Type | Method and Description |
|---|---|
static File |
sanitize(File f)
Sanitize a File object -- remove all relative path portions, i.e.
|
static String |
sanitize(String filename)
Sanitize a path -- remove all relative path portions, i.e.
|
static String |
sanitizePaths(String pathsString)
Sanitize a "Classpath-like" list of Paths.
|
public static File sanitize(File f)
f - The file to sanitizepublic static String sanitize(String filename)
filename - The path to sanitizeCopyright © 2017–2020 Eclipse Foundation. All rights reserved.