mirror of
https://github.com/samsonjs/media.git
synced 2026-03-29 10:05:48 +00:00
Only allow one layer of sub-directories in the cache for now
PiperOrigin-RevId: 230209898
This commit is contained in:
parent
e4eaaedad3
commit
c2f6dd6b0a
1 changed files with 1 additions and 1 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue