fix #731 check thumbnail directory
This commit is contained in:
parent
67f2a67252
commit
43ea934c9e
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