| | |
| | | CommandLine cmdLine = new CommandLine(ConfigurationHandler.getConfiguration().getBorgCommand()); |
| | | cmdLine.addArgument(command); |
| | | for (String arg : args) { |
| | | if (arg != null) |
| | | cmdLine.addArgument(arg); |
| | | } |
| | | cmdLine.addArgument(repoOrArchive); |
| | |
| | | this.content = BorgCommands.list(repoConfig, archive); |
| | | save(); |
| | | } |
| | | return content; |
| | | List<FilesystemItem> result = this.content; |
| | | if (content != null && content.size() > 100000) { |
| | | // Don't waste the memory space... |
| | | this.content = null; |
| | | } |
| | | return result; |
| | | } |
| | | |
| | | protected void update(AbstractCache readCache) { |
| | |
| | | if (archive != null) { |
| | | List<FilesystemItem> content = ButlerCache.getInstance().getArchiveContent(repoConfig, archive); |
| | | log.info("Number of items (content) of archive: " + content.size()); |
| | | content = ButlerCache.getInstance().getArchiveContent(repoConfig, archive); |
| | | } |
| | | } |
| | | butlerCache.save(); |