ch.cyberduck.core.features.Delete.isSupported()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(1.6k)|赞(0)|评价(0)|浏览(170)

本文整理了Java中ch.cyberduck.core.features.Delete.isSupported()方法的一些代码示例,展示了Delete.isSupported()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Delete.isSupported()方法的具体详情如下:
包路径:ch.cyberduck.core.features.Delete
类名称:Delete
方法名:isSupported

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);

相关文章