@Test public void testAcceptDirectoryNew() throws Exception { final HashMap<Path, Path> files = new HashMap<Path, Path>(); final Path source = new Path("a", EnumSet.of(Path.Type.directory)); files.put(source, new Path("a", EnumSet.of(Path.Type.directory))); AbstractCopyFilter f = new OverwriteFilter(new NullSession(new Host(new TestProtocol())), new NullSession(new Host(new TestProtocol())), files); assertTrue(f.accept(source, null, new TransferStatus())); }
@Override public boolean accept(final Path source, final Local local, final TransferStatus parent) { return true; }
OverwriteFilter extends AbstractCopyFilter { @Override public boolean accept(final Path source, final Local local, final TransferStatus parent) { return true; } }
OverwriteFilter extends AbstractCopyFilter { @Override public boolean accept(final Path source, final Local local, final TransferStatus parent) { return true; } OverwriteFilter(final Session<?> source, final Session<?> destination, final Map<Path, Path> files);  OverwriteFilter(final Session<?> source, final Session<?> destination, final Map<Path, Path> files, final UploadFilterOptions options); }
OverwriteFilter extends AbstractCopyFilter { @Override public boolean accept(final Path source, final Local local, final TransferStatus parent) { return true; } OverwriteFilter(final Session<?> source, final Session<?> destination, final Map<Path, Path> files);  OverwriteFilter(final Session<?> source, final Session<?> destination, final Map<Path, Path> files, final UploadFilterOptions options); @Override boolean accept(final Path source, final Local local, final TransferStatus parent); }
OverwriteFilter extends AbstractCopyFilter { @Override public boolean accept(final Path source, final Local local, final TransferStatus parent) { return true; } OverwriteFilter(final Session<?> source, final Session<?> destination, final Map<Path, Path> files);  OverwriteFilter(final Session<?> source, final Session<?> destination, final Map<Path, Path> files, final UploadFilterOptions options); @Override boolean accept(final Path source, final Local local, final TransferStatus parent);  }