MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / decodePath

Method decodePath

ij/src/main/java/ij/io/OpenDialog.java:222–233  ·  view source on GitHub ↗
(String path)

Source from the content-addressed store, hash-verified

220 }
221
222 void decodePath(String path) {
223 int i = path.lastIndexOf('/');
224 if (i==-1)
225 i = path.lastIndexOf('\\');
226 if (i>0) {
227 dir = path.substring(0, i+1);
228 name = path.substring(i+1);
229 } else {
230 dir = "";
231 name = path;
232 }
233 }
234
235 /** Returns the selected directory. */
236 public String getDirectory() {

Callers 1

OpenDialogMethod · 0.95

Calls 1

substringMethod · 0.80

Tested by

no test coverage detected