ignore files for import if they start with "."

This commit is contained in:
Axel Uhl committed 2013-04-19 00:16:03 +02:00
1 parent 91b86d18fa
commit bb413ced3e
1 file changed
+1 -1
@@ -28,7 +28,7 @@ public class FileBasedResultDocumentProvider implements ResultDocumentProvider {
final File[] fileList = scanDir.listFiles();
if (fileList != null) {
for (File file : fileList) {
if (file.isFile()) {
if (file.isFile() && !file.getName().startsWith(".")) {
logger.fine("adding " + file + " to result import list");
result.add(new Triple<InputStream, String, TimePoint>(new FileInputStream(file), file.toString(),
new MillisecondsTimePoint(file.lastModified())));