()
| 138 | } |
| 139 | |
| 140 | public Optional<String> getExtension() { |
| 141 | var name = getFileName(); |
| 142 | var split = name.split("\\."); |
| 143 | if (split.length < 2) { |
| 144 | return Optional.empty(); |
| 145 | } |
| 146 | return Optional.of(split[split.length - 1]); |
| 147 | } |
| 148 | |
| 149 | public FilePath join(String... parts) { |
| 150 | var joined = String.join("/", parts); |
nothing calls this directly
no test coverage detected