aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger/utils
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2017-08-13 22:55:41 +0200
committerChristian Schneppe <christian@pix-art.de>2017-08-13 22:55:41 +0200
commitea3cdf46cbe8289e942b71d7e1e1ddf68072ee66 (patch)
tree01ddbe97c92b591a42972bca007449c0bc272890 /src/main/java/de/pixart/messenger/utils
parent50e26be0904a75f7dce1b02686350ab769085013 (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.java2
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);