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

Method getFileName

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

Source from the content-addressed store, hash-verified

105 }
106
107 public String getFileName() {
108 var split = split();
109 if (split.size() == 0) {
110 return "";
111 }
112 var components = split.stream().filter(s -> !s.isEmpty()).toList();
113 if (components.size() == 0) {
114 return "";
115 }
116
117 return components.getLast();
118 }
119
120 public boolean isDotFile() {
121 var name = getFileName();

Callers 8

isDotFileMethod · 0.95
getBaseNameMethod · 0.95
getExtensionMethod · 0.95
getParentMethod · 0.95
getNameMethod · 0.45
getNameMethod · 0.45
guiDialogMethod · 0.45
executeImplMethod · 0.45

Calls 4

splitMethod · 0.95
sizeMethod · 0.80
filterMethod · 0.65
isEmptyMethod · 0.45

Tested by

no test coverage detected