MCPcopy Create free account
hub / github.com/BaseXdb/basex / dir

Method dir

basex-core/src/main/java/org/basex/io/IO.java:320–322  ·  view source on GitHub ↗

Returns the directory path (all characters up to the last slash). No check will be performed if the directory exists. @return directory path

()

Source from the content-addressed store, hash-verified

318 * @return directory path
319 */
320 public final String dir() {
321 return pth.substring(0, pth.lastIndexOf('/') + 1);
322 }
323
324 /**
325 * Creates a URL from the specified path.

Callers 7

mergeMethod · 0.95
evalMethod · 0.95
testSetMethod · 0.95
renameMethod · 0.45
listResourcesMethod · 0.45
exportMethod · 0.45
resolveMethod · 0.45

Calls 2

lastIndexOfMethod · 0.80
substringMethod · 0.45

Tested by 1

testSetMethod · 0.76