Merge pull request #6068 from APriestman/6612_chromeCacheAssociatedFiles

6612 Chrome cache - don't cache folders or files not in the cache folder
This commit is contained in:
Ann Priestman 2020-07-13 09:14:05 -04:00 committed by GitHub
commit a19f332d9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -556,7 +556,9 @@ final class ChromeCacheExtractor {
List<AbstractFile> effFiles = fileManager.findFiles(dataSource, "f_%", cachePath); //NON-NLS
for (AbstractFile abstractFile : effFiles ) {
this.externalFilesTable.put(cachePath + abstractFile.getName(), abstractFile);
if (cachePath.equals(abstractFile.getParentPath()) && abstractFile.isFile()) {
this.externalFilesTable.put(cachePath + abstractFile.getName(), abstractFile);
}
}
}
/**