@Test public void testDeletePlaceholder() throws Exception { final AtomicBoolean delete = new AtomicBoolean(); final String name = "placeholder-" + UUID.randomUUID().toString(); session.withListener(new TranscriptListener() { @Override public void log(final Type request, final String message) { switch(request) { case request: if(("DELETE /v1/MossoCloudFS_59113590-c679-46c3-bf62-9d7c3d5176ee/test.cyberduck.ch/" + name + " HTTP/1.1").equals(message)) { delete.set(true); } } } }); final Path container = new Path("test.cyberduck.ch", EnumSet.of(Path.Type.directory, Path.Type.volume)); container.attributes().setRegion("IAD"); final Path placeholder = new Path(container, name, EnumSet.of(Path.Type.directory)); new SwiftDirectoryFeature(session).mkdir(placeholder, null, new TransferStatus()); final SwiftFindFeature find = new SwiftFindFeature(session); assertTrue(find.find(placeholder)); new SwiftDeleteFeature(session).delete(Collections.singletonList(placeholder), new DisabledLoginCallback(), new Delete.DisabledCallback()); assertTrue(delete.get()); Thread.sleep(1000L); assertFalse(find.find(placeholder)); }
@Override public void delete(final Map<Path, TransferStatus> files, final PasswordCallback prompt, final Callback callback) throws BackgroundException { this.delete(files, prompt, callback, true); }
SwiftDeleteFeature implements Delete { @Override public void delete(final Map<Path, TransferStatus> files, final PasswordCallback prompt, final Callback callback) throws BackgroundException { this.delete(files, prompt, callback, true); } }
SwiftDeleteFeature implements Delete { @Override public void delete(final Map<Path, TransferStatus> files, final PasswordCallback prompt, final Callback callback) throws BackgroundException { this.delete(files, prompt, callback, true); } SwiftDeleteFeature(final SwiftSession session);  SwiftDeleteFeature(final SwiftSession session, final SwiftRegionService regionService);  SwiftDeleteFeature(final SwiftSession session, final SwiftSegmentService segmentService,
                              final SwiftRegionService regionService); }
SwiftDeleteFeature implements Delete { @Override public void delete(final Map<Path, TransferStatus> files, final PasswordCallback prompt, final Callback callback) throws BackgroundException { this.delete(files, prompt, callback, true); } SwiftDeleteFeature(final SwiftSession session);  SwiftDeleteFeature(final SwiftSession session, final SwiftRegionService regionService);  SwiftDeleteFeature(final SwiftSession session, final SwiftSegmentService segmentService,
                              final SwiftRegionService regionService); @Override void delete(final Map<Path, TransferStatus> files, final PasswordCallback prompt, final Callback callback); }
SwiftDeleteFeature implements Delete { @Override public void delete(final Map<Path, TransferStatus> files, final PasswordCallback prompt, final Callback callback) throws BackgroundException { this.delete(files, prompt, callback, true); } SwiftDeleteFeature(final SwiftSession session);  SwiftDeleteFeature(final SwiftSession session, final SwiftRegionService regionService);  SwiftDeleteFeature(final SwiftSession session, final SwiftSegmentService segmentService,
                              final SwiftRegionService regionService); @Override void delete(final Map<Path, TransferStatus> files, final PasswordCallback prompt, final Callback callback);  }