mirror of https://github.com/micromata/borgbackup-butler.git

Kai Reinhard
08.03.2019 26f572a3cbdde9855563b5b6ca575e95bc6cb57d
borgbutler-core/src/main/java/de/micromata/borgbutler/cache/ButlerCache.java
@@ -195,10 +195,6 @@
        return archive;
    }
    public List<BorgFilesystemItem> getArchiveContent(String archiveId) {
        return getArchiveContent(archiveId, true, null);
    }
    public Archive getArchive(String archiveId) {
        for (Repository repository : getAllRepositories()) {
            if (repository.getArchives() != null) {
@@ -304,6 +300,20 @@
        return archiveFilelistCache.load(file, null);
    }
    public void deleteCachedArchiveContent(String repoIdOrName, String archiveIdOrName) {
        Repository repository = getRepository(repoIdOrName);
        if (repository == null) {
            log.warn("Can't delete archive content cache file, repository not found: " + repoIdOrName);
            return;
        }
        Archive archive = getArchive(repoIdOrName, archiveIdOrName);
        if (archive == null) {
            log.warn("Can't delete archive content cache file, archive not found: " + repoIdOrName);
            return;
        }
        archiveFilelistCache.deleteCachFile(repository, archive);
    }
    public void shutdown() {
        JCS.shutdown();
    }