mirror of
https://github.com/MaintainTeam/Hypatia.git
synced 2025-03-01 05:48:23 +03:00
Make sure to monitor hidden folders
This commit is contained in:
parent
e46b1723ef
commit
7b67a7c6f3
2 changed files with 4 additions and 4 deletions
|
@ -6,8 +6,8 @@ android {
|
|||
applicationId "us.spotco.malwarescanner"
|
||||
minSdkVersion 21
|
||||
targetSdkVersion 26
|
||||
versionCode 13
|
||||
versionName "1.6"
|
||||
versionCode 15
|
||||
versionName "1.7"
|
||||
}
|
||||
buildTypes {
|
||||
debug {
|
||||
|
|
|
@ -11,8 +11,8 @@ import java.util.Stack;
|
|||
* Copyright (C) 2012 Bartek Przybylski
|
||||
* Copyright (C) 2015 ownCloud Inc.
|
||||
* Copyright (C) 2016 Daniel Gultsch
|
||||
* Taken from siacs/Conversations and tweaked a bit
|
||||
*/
|
||||
|
||||
public abstract class RecursiveFileObserver {
|
||||
|
||||
private final String path;
|
||||
|
@ -35,7 +35,7 @@ public abstract class RecursiveFileObserver {
|
|||
continue;
|
||||
}
|
||||
for(File file : files) {
|
||||
if (file.isDirectory() && file.getName().charAt(0) != '.') {
|
||||
if (file.isDirectory() && !file.getName().equals(".") && !file.getName().equals("..")) {
|
||||
final String currentPath = file.getAbsolutePath();
|
||||
if (depth(file) <= 8 && !stack.contains(currentPath) && !observing(currentPath)) {
|
||||
stack.push(currentPath);
|
||||
|
|
Loading…
Add table
Reference in a new issue