Returns the names of all backups. @return backups
()
| 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, |
no test coverage detected