Merge branch 'master' into 10.3.x
This commit is contained in:
commit
0a2f31e242
1 changed files with 3 additions and 0 deletions
|
@ -222,6 +222,9 @@ public class ThumbnailManager {
|
|||
}
|
||||
|
||||
public long purge(final long expiry) {
|
||||
if (!baseDir.exists()) {
|
||||
return 0;
|
||||
}
|
||||
try {
|
||||
final FilePurgeVisitor visitor = new FilePurgeVisitor(expiry);
|
||||
Files.walkFileTree(baseDir.toPath(), visitor);
|
||||
|
|
Loading…
Add table
Reference in a new issue