- boolean isTileFile = _TILEFILTER.accept(subdir);
- boolean isBadFile = !isTileFile && subdir.getName().toLowerCase().endsWith("png");
- if (isTileFile || isBadFile)
+ long fileAge = (now - subdir.lastModified()) / 1000 / 60 / 60 / 24;
+ if (inMaxDays < 0 || fileAge > inMaxDays)