Ensures a directory name always ends with a '/'.
(String path)
| 41 | |
| 42 | /** Ensures a directory name always ends with a '/'. */ |
| 43 | public static String normalizeDir(String path) { |
| 44 | return (path != null && (!(path.endsWith("/") || path.endsWith("\\")))) |
| 45 | ? path + FileSystems.getDefault().getSeparator() |
| 46 | : path; |
| 47 | } |
| 48 | |
| 49 | /** |
| 50 | * Checks that the given path is relative to one of the allowPaths supplied. Typically this will |
no test coverage detected