|
4 | 4 |
|
5 | 5 | package cloud.katta.protocols.hub; |
6 | 6 |
|
7 | | -import ch.cyberduck.core.Credentials; |
8 | | -import ch.cyberduck.core.DisabledListProgressListener; |
9 | | -import ch.cyberduck.core.Host; |
10 | | -import ch.cyberduck.core.HostKeyCallback; |
11 | | -import ch.cyberduck.core.HostPasswordStore; |
12 | | -import ch.cyberduck.core.ListService; |
13 | | -import ch.cyberduck.core.LocaleFactory; |
14 | | -import ch.cyberduck.core.LoginCallback; |
15 | | -import ch.cyberduck.core.OAuthTokens; |
16 | | -import ch.cyberduck.core.PasswordStoreFactory; |
17 | | -import ch.cyberduck.core.Profile; |
18 | | -import ch.cyberduck.core.Protocol; |
19 | | -import ch.cyberduck.core.ProtocolFactory; |
20 | | -import ch.cyberduck.core.Session; |
| 7 | +import ch.cyberduck.core.*; |
21 | 8 | import ch.cyberduck.core.exception.BackgroundException; |
22 | 9 | import ch.cyberduck.core.exception.ConnectionCanceledException; |
23 | 10 | import ch.cyberduck.core.exception.InteroperabilityException; |
24 | 11 | import ch.cyberduck.core.exception.LoginCanceledException; |
25 | 12 | import ch.cyberduck.core.features.AttributesFinder; |
| 13 | +import ch.cyberduck.core.features.Find; |
26 | 14 | import ch.cyberduck.core.features.Home; |
27 | 15 | import ch.cyberduck.core.features.Scheduler; |
28 | 16 | import ch.cyberduck.core.http.HttpSession; |
@@ -204,6 +192,9 @@ public <T> T _getFeature(final Class<T> type) { |
204 | 192 | if(type == AttributesFinder.class) { |
205 | 193 | return (T) (AttributesFinder) (f, l) -> f.attributes(); |
206 | 194 | } |
| 195 | + if(type == Find.class) { |
| 196 | + return (T) (Find) (file, listener) -> new SimplePathPredicate(registry.find(HubSession.this, file).getHome()).test(file); |
| 197 | + } |
207 | 198 | return host.getProtocol().getFeature(type); |
208 | 199 | } |
209 | 200 | } |
0 commit comments