@Test public void testFindPlaceholder() throws Exception { assertTrue(new DefaultFindFeature(new NullSession(new Host(new TestProtocol())) { @Override public AttributedList<Path> list(final Path file, final ListProgressListener listener) { return new AttributedList<>(Collections.singletonList(new Path("/a/b", EnumSet.of(Path.Type.directory, Path.Type.placeholder)))); } }).find(new Path("/a/b", EnumSet.of(Path.Type.directory)))); }
@Override public boolean find(final Path file) throws BackgroundException { if(file.isRoot()) { return true; } try { final Path found = this.search(file); return found != null; } catch(NotfoundException e) { return false; } }
DefaultFindFeature extends ListFilteringFeature implements Find { @Override public boolean find(final Path file) throws BackgroundException { if(file.isRoot()) { return true; } try { final Path found = this.search(file); return found != null; } catch(NotfoundException e) { return false; } } }
DefaultFindFeature extends ListFilteringFeature implements Find { @Override public boolean find(final Path file) throws BackgroundException { if(file.isRoot()) { return true; } try { final Path found = this.search(file); return found != null; } catch(NotfoundException e) { return false; } } DefaultFindFeature(final Session<?> session); }
DefaultFindFeature extends ListFilteringFeature implements Find { @Override public boolean find(final Path file) throws BackgroundException { if(file.isRoot()) { return true; } try { final Path found = this.search(file); return found != null; } catch(NotfoundException e) { return false; } } DefaultFindFeature(final Session<?> session); @Override boolean find(final Path file); @Override DefaultFindFeature withCache(final Cache<Path> cache); }
DefaultFindFeature extends ListFilteringFeature implements Find { @Override public boolean find(final Path file) throws BackgroundException { if(file.isRoot()) { return true; } try { final Path found = this.search(file); return found != null; } catch(NotfoundException e) { return false; } } DefaultFindFeature(final Session<?> session); @Override boolean find(final Path file); @Override DefaultFindFeature withCache(final Cache<Path> cache);  }