本文整理了Java中ch.cyberduck.core.features.Delete.isSupported()
方法的一些代码示例,展示了Delete.isSupported()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Delete.isSupported()
方法的具体详情如下:
包路径:ch.cyberduck.core.features.Delete
类名称:Delete
方法名:isSupported
暂无
代码示例来源:origin: iterate-ch/cyberduck
@Override
public boolean isSupported(final Path file) {
return proxy.isSupported(file);
}
代码示例来源:origin: iterate-ch/cyberduck
@Override
public boolean isSupported(final Path file) {
return proxy.isSupported(file);
}
代码示例来源:origin: iterate-ch/cyberduck
@Override
public Path move(final Path source, final Path target, final TransferStatus status, final Delete.Callback callback,
final ConnectionCallback connectionCallback) throws BackgroundException {
if(containerService.isContainer(source)) {
if(new SimplePathPredicate(source.getParent()).test(target.getParent())) {
// Rename only
return proxy.move(source, target, status, callback, connectionCallback);
}
}
if(nodeid.isEncrypted(source) ^ nodeid.isEncrypted(target)) {
// Moving into or from an encrypted room
final Copy copy = session.getFeature(Copy.class);
if(log.isDebugEnabled()) {
log.debug(String.format("Move %s to %s using copy feature %s", source, target, copy));
}
final Path c = copy.copy(source, target, status, connectionCallback);
// Delete source file after copy is complete
final Delete delete = session.getFeature(Delete.class);
if(delete.isSupported(source)) {
delete.delete(Collections.singletonList(source), connectionCallback, callback);
}
return c;
}
else {
return proxy.move(source, target, status, callback, connectionCallback);
}
}
代码示例来源:origin: iterate-ch/cyberduck
return false;
return controller.getSession().getFeature(Delete.class).isSupported(selected);
内容来源于网络,如有侵权,请联系作者删除!