ch.cyberduck.core.Local.copy()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(1.7k)|赞(0)|评价(0)|浏览(111)

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

Local.copy介绍

暂无

代码示例

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

public void copy(final Local copy) throws AccessDeniedException {
  this.copy(copy, new CopyOptions());
}

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

@Override
protected License open(final Local file) {
  // Verify immediately and exit if not a valid receipt
  final ReceiptVerifier verifier = new ReceiptVerifier(file);
  if(verifier.verify(new DisabledLicenseVerifierCallback())) {
    // Set name
    final Receipt receipt = new Receipt(file, verifier.getGuid());
    if(log.isInfoEnabled()) {
      log.info(String.format("Valid receipt %s in %s", receipt, file));
    }
    // Copy to Application Support for users switching versions
    final Local support = SupportDirectoryFinderFactory.get().find();
    try {
      file.copy(LocalFactory.get(support, String.format("%s.cyberduckreceipt", receipt.getName())));
    }
    catch(AccessDeniedException e) {
      log.warn(e.getMessage());
    }
    return receipt;
  }
  else {
    log.error(String.format("Invalid receipt found in %s", file));
    System.exit(APPSTORE_VALIDATION_FAILURE);
    return null;
  }
}

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

log.info(String.format("Append segment %s to %s", segmentFile, local));
segmentFile.copy(local, new Local.CopyOptions().append(true));
if(log.isInfoEnabled()) {
  log.info(String.format("Delete segment %s", segmentFile));

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

if(l.verify(new DisabledLicenseVerifierCallback())) {
  try {
    f.copy(LocalFactory.get(SupportDirectoryFinderFactory.get().find(), f.getName()));
    final NSAlert alert = NSAlert.alert(
      l.toString(),
      new DefaultLocalDirectoryFeature().mkdir(profiles);
    f.copy(LocalFactory.get(profiles, f.getName()));

相关文章