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

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

本文整理了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

  1. @Override
  2. public boolean isSupported(final Path file) {
  3. return proxy.isSupported(file);
  4. }

代码示例来源:origin: iterate-ch/cyberduck

  1. @Override
  2. public boolean isSupported(final Path file) {
  3. return proxy.isSupported(file);
  4. }

代码示例来源:origin: iterate-ch/cyberduck

  1. @Override
  2. public Path move(final Path source, final Path target, final TransferStatus status, final Delete.Callback callback,
  3. final ConnectionCallback connectionCallback) throws BackgroundException {
  4. if(containerService.isContainer(source)) {
  5. if(new SimplePathPredicate(source.getParent()).test(target.getParent())) {
  6. // Rename only
  7. return proxy.move(source, target, status, callback, connectionCallback);
  8. }
  9. }
  10. if(nodeid.isEncrypted(source) ^ nodeid.isEncrypted(target)) {
  11. // Moving into or from an encrypted room
  12. final Copy copy = session.getFeature(Copy.class);
  13. if(log.isDebugEnabled()) {
  14. log.debug(String.format("Move %s to %s using copy feature %s", source, target, copy));
  15. }
  16. final Path c = copy.copy(source, target, status, connectionCallback);
  17. // Delete source file after copy is complete
  18. final Delete delete = session.getFeature(Delete.class);
  19. if(delete.isSupported(source)) {
  20. delete.delete(Collections.singletonList(source), connectionCallback, callback);
  21. }
  22. return c;
  23. }
  24. else {
  25. return proxy.move(source, target, status, callback, connectionCallback);
  26. }
  27. }

代码示例来源:origin: iterate-ch/cyberduck

  1. return false;
  2. return controller.getSession().getFeature(Delete.class).isSupported(selected);

相关文章