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"
|
applicationId "us.spotco.malwarescanner"
|
||||||
minSdkVersion 21
|
minSdkVersion 21
|
||||||
targetSdkVersion 26
|
targetSdkVersion 26
|
||||||
versionCode 13
|
versionCode 15
|
||||||
versionName "1.6"
|
versionName "1.7"
|
||||||
}
|
}
|
||||||
buildTypes {
|
buildTypes {
|
||||||
debug {
|
debug {
|
||||||
|
|
|
@ -11,8 +11,8 @@ import java.util.Stack;
|
||||||
* Copyright (C) 2012 Bartek Przybylski
|
* Copyright (C) 2012 Bartek Przybylski
|
||||||
* Copyright (C) 2015 ownCloud Inc.
|
* Copyright (C) 2015 ownCloud Inc.
|
||||||
* Copyright (C) 2016 Daniel Gultsch
|
* Copyright (C) 2016 Daniel Gultsch
|
||||||
|
* Taken from siacs/Conversations and tweaked a bit
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public abstract class RecursiveFileObserver {
|
public abstract class RecursiveFileObserver {
|
||||||
|
|
||||||
private final String path;
|
private final String path;
|
||||||
|
@ -35,7 +35,7 @@ public abstract class RecursiveFileObserver {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
for(File file : files) {
|
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();
|
final String currentPath = file.getAbsolutePath();
|
||||||
if (depth(file) <= 8 && !stack.contains(currentPath) && !observing(currentPath)) {
|
if (depth(file) <= 8 && !stack.contains(currentPath) && !observing(currentPath)) {
|
||||||
stack.push(currentPath);
|
stack.push(currentPath);
|
||||||
|
|
Loading…
Add table
Reference in a new issue