Only allow one layer of sub-directories in the cache for now

PiperOrigin-RevId: 230209898
This commit is contained in:
olly 2019-01-21 12:44:07 +00:00 committed by Oliver Woodman
parent e4eaaedad3
commit c2f6dd6b0a

View File

@ -405,7 +405,7 @@ public final class SimpleCache implements Cache {
}
for (File file : files) {
String fileName = file.getName();
if (fileName.indexOf('.') == -1) {
if (isRootDirectory && fileName.indexOf('.') == -1) {
loadDirectory(file, /* isRootDirectory= */ false);
} else {
if (isRootDirectory && CachedContentIndex.FILE_NAME.equals(fileName)) {