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

Method setFiles

basex-core/src/main/java/org/basex/gui/GUIOptions.java:254–261  ·  view source on GitHub ↗

Sets the string array value of an option. Duplicates and orphaned files will be removed. @param option option to be set @param paths file paths to be assigned

(final StringsOption option, final String[] paths)

Source from the content-addressed store, hash-verified

252 * @param paths file paths to be assigned
253 */
254 public synchronized void setFiles(final StringsOption option, final String[] paths) {
255 final StringList list = new StringList();
256 for(final String path : paths) {
257 final IOFile file = new IOFile(path);
258 if(file.exists()) list.addUnique(file.path());
259 }
260 set(option, list.finish());
261 }
262
263 /**
264 * Sets the string value of an option. The file path will be normalized.

Callers 3

GUIOptionsMethod · 0.95
saveOptionsMethod · 0.80
refreshHistoryMethod · 0.80

Calls 5

existsMethod · 0.95
setMethod · 0.65
addUniqueMethod · 0.45
pathMethod · 0.45
finishMethod · 0.45

Tested by

no test coverage detected