[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [metrics-db/master] Create stats/ directory before writing torperf temp file.
commit 9fac7fdda39996aa7baa70f9d4c8a7abfe7fd369
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
Date: Sat Oct 27 18:26:24 2012 -0400
Create stats/ directory before writing torperf temp file.
---
.../ernie/db/torperf/TorperfDownloader.java | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/org/torproject/ernie/db/torperf/TorperfDownloader.java b/src/org/torproject/ernie/db/torperf/TorperfDownloader.java
index 19b4a54..4201858 100644
--- a/src/org/torproject/ernie/db/torperf/TorperfDownloader.java
+++ b/src/org/torproject/ernie/db/torperf/TorperfDownloader.java
@@ -117,6 +117,7 @@ public class TorperfDownloader extends Thread {
private void writeLastMergedTimestamps() {
try {
+ this.torperfLastMergedFile.getParentFile().mkdirs();
BufferedWriter bw = new BufferedWriter(new FileWriter(
this.torperfLastMergedFile));
for (Map.Entry<String, String> e :
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits