Ignore .extensions directory (#315)
Ignore .extensions directory when traversing password tree.
This commit is contained in:
parent
00e0c2541c
commit
816b3d2c4a
2 changed files with 4 additions and 4 deletions
|
@ -364,8 +364,8 @@ public class AutofillService extends AccessibilityService {
|
||||||
items.add(file);
|
items.add(file);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// ignore .git directory
|
// ignore .git and .extensions directory
|
||||||
if (file.getName().equals(".git"))
|
if (file.getName().equals(".git") || file.getName().equals(".extensions"))
|
||||||
continue;
|
continue;
|
||||||
items.addAll(searchPasswords(file, appName));
|
items.addAll(searchPasswords(file, appName));
|
||||||
}
|
}
|
||||||
|
|
|
@ -191,8 +191,8 @@ public class PasswordRepository {
|
||||||
if (file.isFile()) {
|
if (file.isFile()) {
|
||||||
passwordList.add(PasswordItem.newPassword(file.getName(), file, rootDir));
|
passwordList.add(PasswordItem.newPassword(file.getName(), file, rootDir));
|
||||||
} else {
|
} else {
|
||||||
// ignore .git directory
|
// ignore .git and .extensions directory
|
||||||
if (file.getName().equals(".git"))
|
if (file.getName().equals(".git") || file.getName().equals(".extensions"))
|
||||||
continue;
|
continue;
|
||||||
passwordList.add(PasswordItem.newCategory(file.getName(), file, rootDir));
|
passwordList.add(PasswordItem.newCategory(file.getName(), file, rootDir));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue