diff options
author | Christian Schneppe <christian@pix-art.de> | 2017-08-13 22:55:41 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2017-08-13 22:55:41 +0200 |
commit | ea3cdf46cbe8289e942b71d7e1e1ddf68072ee66 (patch) | |
tree | 01ddbe97c92b591a42972bca007449c0bc272890 /src/main/java/de/pixart/messenger/utils | |
parent | 50e26be0904a75f7dce1b02686350ab769085013 (diff) |
do not run file observer on hidden directories
Diffstat (limited to 'src/main/java/de/pixart/messenger/utils')
-rw-r--r-- | src/main/java/de/pixart/messenger/utils/ConversationsFileObserver.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/utils/ConversationsFileObserver.java b/src/main/java/de/pixart/messenger/utils/ConversationsFileObserver.java index dd2d673b4..4c2583533 100644 --- a/src/main/java/de/pixart/messenger/utils/ConversationsFileObserver.java +++ b/src/main/java/de/pixart/messenger/utils/ConversationsFileObserver.java @@ -36,7 +36,7 @@ public abstract class ConversationsFileObserver { continue; } for (File file : files) { - if (file.isDirectory() && !file.getName().equals(".") && !file.getName().equals("..")) { + if (file.isDirectory() && file.getName().charAt(0) != '.') { final String currentPath = file.getAbsolutePath(); if (depth(file) <= 8 && !stack.contains(currentPath) && !observing(currentPath)) { stack.push(currentPath); |