Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 812eeecb authored by Vincent Bourgmayer's avatar Vincent Bourgmayer
Browse files

update FileFilter in RecursiveFileObserver

parent a9bea523
Loading
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -29,7 +29,8 @@ public class RecursiveFileObserver extends FileObserver {
    private final static FileFilter watchableDirectoriesFilter = new FileFilter() {
        @Override
        public boolean accept(File file) {
            return file.isDirectory() && !file.getName().equals(".") && !file.getName().equals("..");
            return file.isDirectory() && !file.getName().startsWith(".");

        }
    };

@@ -61,6 +62,7 @@ public class RecursiveFileObserver extends FileObserver {
        } else {
            file = new File(mPath, path);
        }

        notify(event, file);
    }