()
| 94 | } |
| 95 | |
| 96 | public FilePath removeTrailingSlash() { |
| 97 | if (value.equals("/") || value.equals("\\")) { |
| 98 | return FilePath.of(value); |
| 99 | } |
| 100 | |
| 101 | if (value.endsWith("/") || value.endsWith("\\")) { |
| 102 | return FilePath.of(value.substring(0, value.length() - 1)); |
| 103 | } |
| 104 | return FilePath.of(value); |
| 105 | } |
| 106 | |
| 107 | public String getFileName() { |
| 108 | var split = split(); |
no test coverage detected