mirror of
https://github.com/torproject/collector.git
synced 2024-11-23 09:29:46 +00:00
Index should not record temporary files,
i.e. files starting with "." or ending with ".tmp".
This commit is contained in:
parent
7e80f72393
commit
6703873d00
@ -21,6 +21,7 @@
|
||||
- Add enum for descriptor type annotations.
|
||||
- Add modular file persistence to write descriptors to the out/ and
|
||||
recent/ subdirectories..
|
||||
- Exclude temporary files from index.json* files.
|
||||
|
||||
# Changes in version 1.0.2 - 2016-10-07
|
||||
|
||||
|
@ -175,7 +175,8 @@ public class CreateIndexJson extends CollecTorMain {
|
||||
return null;
|
||||
}
|
||||
for (File fileOrDirectory : fileList) {
|
||||
if (fileOrDirectory.getName().startsWith(".")) {
|
||||
if (fileOrDirectory.getName().startsWith(".")
|
||||
|| fileOrDirectory.getName().endsWith(".tmp")) {
|
||||
continue;
|
||||
}
|
||||
if (fileOrDirectory.isFile()) {
|
||||
|
Loading…
Reference in New Issue
Block a user