/// <summary>
        /// 移动文件(两个文件需要在同一账号下)
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        public IEnumerable <MoveFileResultDto> MoveRange(MoveFileRangeParam request)
        {
            new MoveFileParamRangeValidator().Validate(request).Check(HttpStatus.Err.Name);
            List <MoveFileResultDto> res = new List <MoveFileResultDto>();

            request.MoveFiles.ToList()
            .ListPager(list => { res.AddRange(MoveMulti(list, request.PersistentOps)); }, 1000, 1);
            return(res);
        }
Exemplo n.º 2
0
        /// <summary>
        /// 批量移动文件(两个文件需要在同一账号下)
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        public IEnumerable <MoveFileResultDto> MoveRange(MoveFileRangeParam request)
        {
            new MoveFileParamRangeValidator().Validate(request).Check(HttpStatus.Err.Name);
            List <MoveFileResultDto> list = new List <MoveFileResultDto>();

            request.MoveFiles.ForEach(file =>
            {
                var ret = Move(new MoveFileParam(file.SourceKey, file.OptBucket,
                                                 file.OptKey, file.IsForce,
                                                 request.PersistentOps));
                list.Add(ret);
            });
            return(list);
        }
 /// <summary>
 /// 移动文件(两个文件需要在同一账号下)
 /// </summary>
 /// <param name="request"></param>
 /// <returns></returns>
 public IEnumerable <MoveFileResultDto> MoveRange(MoveFileRangeParam request)
 {
     throw new NotImplementedException();
 }