MCPcopy Index your code
hub / github.com/xpipe-io/xpipe / split

Method split

core/src/main/java/io/xpipe/core/FilePath.java:210–219  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

208 }
209
210 public List<String> split() {
211 if (split != null) {
212 return split;
213 }
214
215 var ar = value.split("[\\\\/]");
216 var l = Arrays.stream(ar).filter(s -> !s.isEmpty()).toList();
217 split = l;
218 return l;
219 }
220
221 public FilePath toUnix() {
222 if (value.equals("/")) {

Callers 15

getRootMethod · 0.95
getFileNameMethod · 0.95
getParentMethod · 0.95
toUnixMethod · 0.95
toWindowsMethod · 0.95
getExtensionMethod · 0.80
fromStringMethod · 0.80
loadDefinitionsMethod · 0.80
loadDefinitionsMethod · 0.80
hasImageMethod · 0.80
imageMethod · 0.80
parseMethod · 0.80

Calls 2

filterMethod · 0.65
isEmptyMethod · 0.45

Tested by 1

getResourcePathMethod · 0.64