From c9bb9a7f1a34a0437724a58706dbf0ad48850c2f Mon Sep 17 00:00:00 2001 From: Sebastian Quek Date: Tue, 12 Jan 2016 19:32:53 +0800 Subject: [PATCH] [#35] .git folder is now ignored. --- src/main/java/backend/Logic.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/backend/Logic.java b/src/main/java/backend/Logic.java index c724ced..daee272 100644 --- a/src/main/java/backend/Logic.java +++ b/src/main/java/backend/Logic.java @@ -107,7 +107,7 @@ private void traverseDirectory(File folder, ArrayList fileTypes) { if (folder.isFile()) { scanFile(folder, getFileExtension(folder)); - } else if (folder.isDirectory()) { + } else if (folder.isDirectory() && !folder.getName().equals(".git")) { scanFilesInFolder(folder, willScanCurrentDirOnly, fileTypes); } }