From 4b2b7d72a8ed446d58232ae7cb149d4f42e45035 Mon Sep 17 00:00:00 2001 From: Denis Molony Date: Mon, 23 Jul 2018 20:16:00 +1000 Subject: [PATCH] ignore invisible files --- src/com/bytezone/diskbrowser/utilities/Utility.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/com/bytezone/diskbrowser/utilities/Utility.java b/src/com/bytezone/diskbrowser/utilities/Utility.java index de730ea..6cd9921 100644 --- a/src/com/bytezone/diskbrowser/utilities/Utility.java +++ b/src/com/bytezone/diskbrowser/utilities/Utility.java @@ -91,6 +91,8 @@ public class Utility public static boolean validFileType (String filename) { + if (filename.startsWith (".")) // ignore invisible files + return false; return suffixes.contains (getSuffix (filename)); }