Index should not record temporary files,

i.e. files starting with "." or ending with ".tmp".
This commit is contained in:
iwakeh 2016-10-19 16:21:33 +02:00 committed by Karsten Loesing
parent 7e80f72393
commit 6703873d00
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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()) {