[tor-commits] [collector/master] Clean up files in recent/exit-lists/ again.

karsten at torproject.org karsten at torproject.org
Tue Feb 14 08:09:16 UTC 2017


commit b81852f7c8ee8a8dd58dfaa20e1c5d6008516c51
Author: Karsten Loesing <karsten.loesing at gmx.net>
Date:   Tue Feb 14 09:08:46 2017 +0100

    Clean up files in recent/exit-lists/ again.
    
    Fixes #21443.
---
 CHANGELOG.md                                                        | 6 ++++++
 .../java/org/torproject/collector/exitlists/ExitListDownloader.java | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 107423c..2365447 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,9 @@
+# Changes in version 1.?.? - 2017-??-??
+
+ * Medium changes
+   - Clean up files in recent/exit-lists/ again.
+
+
 # Changes in version 1.1.2 - 2017-01-17
 
  * Medium changes
diff --git a/src/main/java/org/torproject/collector/exitlists/ExitListDownloader.java b/src/main/java/org/torproject/collector/exitlists/ExitListDownloader.java
index 877057e..0ac5112 100644
--- a/src/main/java/org/torproject/collector/exitlists/ExitListDownloader.java
+++ b/src/main/java/org/torproject/collector/exitlists/ExitListDownloader.java
@@ -199,7 +199,7 @@ public class ExitListDownloader extends CollecTorMain {
     long cutOffMillis = System.currentTimeMillis()
         - 3L * 24L * 60L * 60L * 1000L;
     Stack<File> allFiles = new Stack<File>();
-    allFiles.add(new File(recentPathName, EXITLISTS));
+    allFiles.add(new File(recentPathName));
     while (!allFiles.isEmpty()) {
       File file = allFiles.pop();
       if (file.isDirectory()) {



More information about the tor-commits mailing list