diff --git a/fine-commons-io/src/com/fr/third/org/apache/commons/io/FilenameUtils.java b/fine-commons-io/src/com/fr/third/org/apache/commons/io/FilenameUtils.java index 73848113a..af41d632e 100644 --- a/fine-commons-io/src/com/fr/third/org/apache/commons/io/FilenameUtils.java +++ b/fine-commons-io/src/com/fr/third/org/apache/commons/io/FilenameUtils.java @@ -195,6 +195,17 @@ public class FilenameUtils { public static String normalize(final String filename) { return doNormalize(filename, SYSTEM_SEPARATOR, true); } + + + /** + * Normalizes a path with unix separator, removing double and single dot path steps. + * @param filename the filename to normalize, null returns null + * @return the normalized filename, or null if invalid. Null bytes inside string will be removed + */ + public static String standard(final String filename) { + return normalize(filename, true); + } + /** * Normalizes a path, removing double and single dot path steps. *