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);
|
||||
}
|
||||
} else {
|
||||
// ignore .git directory
|
||||
if (file.getName().equals(".git"))
|
||||
// ignore .git and .extensions directory
|
||||
if (file.getName().equals(".git") || file.getName().equals(".extensions"))
|
||||
continue;
|
||||
items.addAll(searchPasswords(file, appName));
|
||||
}
|
||||
|
|
|
@ -191,8 +191,8 @@ public class PasswordRepository {
|
|||
if (file.isFile()) {
|
||||
passwordList.add(PasswordItem.newPassword(file.getName(), file, rootDir));
|
||||
} else {
|
||||
// ignore .git directory
|
||||
if (file.getName().equals(".git"))
|
||||
// ignore .git and .extensions directory
|
||||
if (file.getName().equals(".git") || file.getName().equals(".extensions"))
|
||||
continue;
|
||||
passwordList.add(PasswordItem.newCategory(file.getName(), file, rootDir));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue