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

Method dir

basex-core/src/main/java/org/basex/util/Prop.java:151–154  ·  view source on GitHub ↗

Attaches a directory separator to the specified directory string. @param path directory path @return directory string

(final String path)

Source from the content-addressed store, hash-verified

149 * @return directory string
150 */
151 private static String dir(final String path) {
152 return path.isEmpty() || Strings.endsWith(path, '/') || Strings.endsWith(path, '\\') ?
153 path : path + File.separator;
154 }
155
156 /**
157 * Sets a global option.

Callers 2

PropClass · 0.95
applicationDirMethod · 0.45

Calls 2

endsWithMethod · 0.95
isEmptyMethod · 0.45

Tested by

no test coverage detected