示例#1
0
 public override IEnumerator <FindData> GetFiles()
 {
     if (Context.CurrentOperation == StatusOperation.CalculateSize ||
         Context.CurrentOperation == StatusOperation.Delete ||
         Context.CurrentOperation == StatusOperation.RenameMoveMulti)
     {
         return(S3Service
                .GetObjects(bucketName, FolderKey, "")
                .Where(o => o is S3Entry)
                .Select(o => ToFindData(o))
                .GetEnumerator());
     }
     return(S3Service
            .GetObjects(bucketName, FolderKey, "/")
            .Where(o => !string.IsNullOrEmpty(o.Key))
            .Select(o => ToFindData(o))
            .GetEnumerator());
 }