示例#1
0
  private static void pruneTemp(final File dir) {

    for (final String file : dir.list()) {

      if (file.endsWith(tempExt)) {
        new File(dir, file).delete();
      }
    }
  }
示例#2
0
  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);
      }
    }
  }