File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed
core/src/main/java/ch/cyberduck/core/vault
cryptomator/src/main/java/ch/cyberduck/core/cryptomator Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -74,13 +74,11 @@ public boolean close(final Path directory) {
74
74
@ Override
75
75
public boolean contains (final Path directory , final boolean recursive ) {
76
76
for (Vault vault : this ) {
77
- if (directory . equals (vault .getHome ())) {
77
+ if (new SimplePathPredicate ( directory ). test (vault .getHome ())) {
78
78
return true ;
79
79
}
80
80
if (recursive ) {
81
- if (directory .isChild (vault .getHome ())) {
82
- return true ;
83
- }
81
+ return vault .contains (directory );
84
82
}
85
83
}
86
84
return false ;
Original file line number Diff line number Diff line change @@ -392,10 +392,7 @@ public State getState() {
392
392
393
393
@ Override
394
394
public boolean contains (final Path file ) {
395
- if (this .isUnlocked ()) {
396
- return new SimplePathPredicate (file ).test (home ) || file .isChild (home );
397
- }
398
- return false ;
395
+ return new SimplePathPredicate (file ).test (home ) || file .isChild (home );
399
396
}
400
397
401
398
@ Override
You can’t perform that action at this time.
0 commit comments