mirror of
https://github.com/moparisthebest/Conversations
synced 2024-12-25 08:58:55 -05:00
do not run file observer on hidden directories
This commit is contained in:
parent
911e392006
commit
490115d20e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user