borgbutler-core/src/main/java/de/micromata/borgbutler/BorgCommands.java
@@ -76,7 +76,7 @@ String response = outputStream.toString(Definitions.STD_CHARSET); try { IOUtils.copy(new StringReader(response), new FileWriter("response.json")); }catch (IOException ex) { } catch (IOException ex) { } List<FilesystemItem> content = new ArrayList<>(); @@ -101,7 +101,8 @@ CommandLine cmdLine = new CommandLine(ConfigurationHandler.getConfiguration().getBorgCommand()); cmdLine.addArgument(command); for (String arg : args) { cmdLine.addArgument(arg); if (arg != null) cmdLine.addArgument(arg); } cmdLine.addArgument(repoOrArchive); DefaultExecutor executor = new DefaultExecutor(); borgbutler-core/src/main/java/de/micromata/borgbutler/cache/ArchiveFileListCache.java
@@ -32,7 +32,12 @@ 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) { borgbutler-core/src/test/java/de/micromata/borgbutler/cache/CacheTest.java
@@ -72,6 +72,7 @@ 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();