public override IEnumerator <FindData> GetFiles() { if (Context.CurrentOperation == StatusOperation.List) { return(S3Service .GetBuckets() .Select(b => new FindData(b.Key, FileAttributes.Directory, b.CreationDate)) .Union(new[] { new FindData(RS.NewBucket) }) .GetEnumerator()); } if (Context.CurrentOperation == StatusOperation.Delete) { return(EmptyFindDataEnumerator); } return(null); }