/// <summary> /// Implementation of the ZephyrDirectory GetFiles method in AmazonS3Storage. /// </summary> /// <returns>An enumeration of AmazonS3ZephyrFile objects.</returns> public override IEnumerable <ZephyrFile> GetFiles() { if (_client == null) { throw new Exception($"AWSClient Not Set."); } List <ZephyrFile> files = new List <ZephyrFile>(); S3DirectoryInfo dInfo = new S3DirectoryInfo(this._client.Client, this.BucketName, ObjectKey.Replace('/', '\\')); S3FileInfo[] children = dInfo.GetFiles(); foreach (S3FileInfo child in children) { files.Add(new AwsS3ZephyrFile(_client, PathCombine(this.FullName, child.Name))); } return(files); }