@@ -70,9 +70,12 @@ public override async IAsyncEnumerable<BlobMetadata> GetBlobMetadataListAsync(st
7070
7171 yield return new BlobMetadata
7272 {
73+ Name = entry . Key ,
7374 FullName = entry . Key ,
74- Name = Path . GetFileName ( entry . Key ) ,
75+ Container = StorageOptions . Bucket ,
7576 Uri = new Uri ( $ "https://s3.amazonaws.com/{ StorageOptions . Bucket } /{ entry . Key } ") ,
77+ LastModified = objectMetaResponse . LastModified ,
78+ CreationTime = objectMetaResponse . LastModified ,
7679 MimeType = objectMetaResponse . Headers . ContentType ,
7780 Length = objectMetaResponse . Headers . ContentLength
7881 } ;
@@ -135,7 +138,7 @@ protected override async Task<Result<BlobMetadata>> UploadInternalAsync(Stream s
135138 InputStream = stream ,
136139 AutoCloseStream = false ,
137140 ContentType = options . MimeType ,
138- ServerSideEncryptionMethod = null
141+ ServerSideEncryptionMethod = null ,
139142 } ;
140143
141144 try
@@ -162,11 +165,13 @@ protected override async Task<Result<LocalFile>> DownloadInternalAsync(LocalFile
162165
163166 localFile . BlobMetadata = new BlobMetadata
164167 {
165- Name = options . FullPath ,
168+ Name = options . FileName ,
169+ Container = StorageOptions . Bucket ,
166170 Uri = new Uri ( $ "https://s3.amazonaws.com/{ StorageOptions . Bucket } /{ options . FullPath } ") ,
171+ LastModified = response . LastModified ,
172+ CreationTime = response . LastModified ,
167173 MimeType = response . Headers . ContentType ,
168- Length = response . Headers . ContentLength ,
169- Container = StorageOptions . Bucket
174+ Length = response . Headers . ContentLength
170175 } ;
171176
172177 await localFile . CopyFromStreamAsync ( await StorageClient . GetObjectStreamAsync ( StorageOptions . Bucket , options . FullPath , null ,
@@ -249,8 +254,11 @@ protected override async Task<Result<BlobMetadata>> GetBlobMetadataInternalAsync
249254
250255 var metadata = new BlobMetadata
251256 {
252- Name = options . FullPath ,
257+ Name = options . FileName ,
258+ Container = StorageOptions . Bucket ,
253259 Uri = new Uri ( $ "https://s3.amazonaws.com/{ StorageOptions . Bucket } /{ options . FullPath } ") ,
260+ LastModified = objectMetaResponse . LastModified ,
261+ CreationTime = objectMetaResponse . LastModified ,
254262 MimeType = objectMetaResponse . Headers . ContentType ,
255263 Length = objectMetaResponse . Headers . ContentLength
256264 } ;
0 commit comments