}
@Override
- protected void clearCache() {
+ protected void invalidateInfo(String luid) {
stories = null;
sourceCovers = new HashMap<String, BufferedImage>();
}
for (File file : getRelatedFiles(luid)) {
// TODO: throw an IOException if we cannot delete the files?
IOUtils.deltree(file);
+ file.getParentFile().delete();
}
}
"\\.info$", "");
InfoCover.writeInfo(newDir, name, meta);
relatedFile.delete();
+ relatedFile.getParentFile().delete();
} catch (IOException e) {
Instance.getTraceHandler().error(e);
}
} else {
relatedFile.renameTo(new File(newDir, relatedFile.getName()));
+ relatedFile.getParentFile().delete();
}
}
- clearCache();
+ invalidateInfo();
}
@Override
pg.add(1);
}
- clearCache();
+ invalidateInfo();
pg.done();
return;
}
super.imprt(other, luid, pg);
- clearCache();
+ invalidateInfo();
}
/**
* {@link LocalLibrary#baseDir}.
* <p>
* Will use a cached list when possible (see
- * {@link BasicLibrary#clearCache()}).
+ * {@link BasicLibrary#invalidateInfo()}).
*
* @param pg
* the optional {@link Progress}