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

Method backups

basex-core/src/main/java/org/basex/core/Databases.java:107–114  ·  view source on GitHub ↗

Returns the names of all backups. @return backups

()

Source from the content-addressed store, hash-verified

105 * @return backups
106 */
107 public StringList backups() {
108 final StringList backups = new StringList();
109 for(final IOFile file : soptions.dbPath().children()) {
110 final String name = file.name();
111 if(name.endsWith(IO.ZIPSUFFIX)) backups.add(name.substring(0, name.lastIndexOf('.')));
112 }
113 return backups;
114 }
115
116 /**
117 * Returns the name of a specific backup, or all backups found for a specific database,

Callers 9

runMethod · 0.95
runMethod · 0.45
runMethod · 0.45
runMethod · 0.45
itemMethod · 0.45
iterMethod · 0.45
itemMethod · 0.45
itemMethod · 0.45
actionMethod · 0.45

Calls 12

addMethod · 0.95
existsMethod · 0.95
regexMethod · 0.95
sortMethod · 0.95
lastIndexOfMethod · 0.80
nameMethod · 0.65
childrenMethod · 0.45
dbPathMethod · 0.45
endsWithMethod · 0.45
substringMethod · 0.45
matchesMethod · 0.45
matcherMethod · 0.45

Tested by

no test coverage detected