Commit c2f6dd6b by olly Committed by Oliver Woodman

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

PiperOrigin-RevId: 230209898
parent e4eaaeda
...@@ -405,7 +405,7 @@ public final class SimpleCache implements Cache { ...@@ -405,7 +405,7 @@ public final class SimpleCache implements Cache {
} }
for (File file : files) { for (File file : files) {
String fileName = file.getName(); String fileName = file.getName();
if (fileName.indexOf('.') == -1) { if (isRootDirectory && fileName.indexOf('.') == -1) {
loadDirectory(file, /* isRootDirectory= */ false); loadDirectory(file, /* isRootDirectory= */ false);
} else { } else {
if (isRootDirectory && CachedContentIndex.FILE_NAME.equals(fileName)) { if (isRootDirectory && CachedContentIndex.FILE_NAME.equals(fileName)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment