private static void pruneTemp(final File dir) { for (final String file : dir.list()) { if (file.endsWith(tempExt)) { new File(dir, file).delete(); } } }
private void getCacheFileList(final File dir, final HashSet<Long> currentFiles) { for (final String file : dir.list()) { final Long cacheFileId = isCacheFile(file); if (cacheFileId != null) { currentFiles.add(cacheFileId); } } }