/// <summary> /// 批量复制文件(两个文件需要在同一账号下) /// </summary> /// <param name="request"></param> /// <returns></returns> public IEnumerable <CopyFileResultDto> CopyRangeTo(CopyFileRangeParam request) { foreach (var copyFile in request.CopyFiles) { yield return(CopyTo(new CopyFileParam(copyFile.SourceKey, copyFile.OptKey, copyFile.OptBucket, copyFile.IsForce, request.PersistentOps))); } }
/// <summary> /// 复制文件(两个文件需要在同一账号下) /// </summary> /// <param name="request"></param> /// <returns></returns> public IEnumerable <CopyFileResultDto> CopyRangeTo(CopyFileRangeParam request) { new CopyFileRangeParamValidator().Validate(request).Check(HttpStatus.Err.Name); List <CopyFileResultDto> res = new List <CopyFileResultDto>(); request.CopyFiles.ToList() .ListPager(list => { res.AddRange(CopyToMulti(list, request.PersistentOps)); }, 1000, 1); return(res); }
/// <summary> /// 复制文件(两个文件需要在同一账号下) /// </summary> /// <param name="request"></param> /// <returns></returns> public IEnumerable <CopyFileResultDto> CopyRangeTo(CopyFileRangeParam request) { throw new NotImplementedException(); }