@@ -60,11 +60,15 @@ public override async IAsyncEnumerable<BlobMetadata> GetBlobMetadataListAsync(st
6060 {
6161 var blobMetadata = new BlobMetadata
6262 {
63- Name = blobItem . Name ,
63+ FullName = blobItem . Name ,
64+ Name = Path . GetFileName ( blobItem . Name ) ,
65+ Uri = new Uri ( StorageClient . Uri , $ "{ StorageOptions . Container } /{ blobItem . Name } ") ,
6466 Container = StorageOptions . Container ,
65- Length = blobItem . Properties . ContentLength . Value ,
67+ Length = blobItem . Properties . ContentLength ! . Value ,
6668 Metadata = blobItem . Metadata . ToDictionary ( k => k . Key , v => v . Value ) ,
67- MimeType = blobItem . Properties . ContentType
69+ LastModified = blobItem . Properties . LastModified ! . Value ,
70+ CreatedOn = blobItem . Properties . CreatedOn ! . Value ,
71+ MimeType = blobItem . Properties . ContentType ,
6872 } ;
6973
7074 yield return blobMetadata ;
@@ -192,15 +196,18 @@ protected override async Task<Result<LocalFile>> DownloadInternalAsync(LocalFile
192196 await EnsureContainerExist ( ) ;
193197 var response = await blobClient . DownloadAsync ( cancellationToken ) ;
194198 await localFile . CopyFromStreamAsync ( response . Value . Content ) ;
199+
195200 localFile . BlobMetadata = new BlobMetadata
196201 {
197- Metadata = response . Value . Details ? . Metadata ? . ToDictionary ( k => k . Key , v => v . Value ) ,
198- MimeType = response . Value . ContentType ,
199- Length = response . Value . ContentLength ,
200- Name = blobClient . Name ,
202+ FullName = blobClient . Name ,
203+ Name = Path . GetFileName ( blobClient . Name ) ,
201204 Uri = blobClient . Uri ,
202205 Container = blobClient . BlobContainerName ,
203- FullName = $ "{ blobClient . Uri } /{ StorageOptions . Container } /{ options . FullPath } "
206+ Length = response . Value . ContentLength ,
207+ CreatedOn = response . Value . Details . LastModified ,
208+ LastModified = response . Value . Details . LastModified ,
209+ Metadata = response . Value . Details . Metadata . ToDictionary ( k => k . Key , v => v . Value ) ,
210+ MimeType = response . Value . ContentType
204211 } ;
205212
206213 return Result < LocalFile > . Succeed ( localFile ) ;
@@ -265,11 +272,12 @@ protected override async Task<Result<BlobMetadata>> GetBlobMetadataInternalAsync
265272
266273 return Result < BlobMetadata > . Succeed ( new BlobMetadata
267274 {
268- Name = blobClient . Name ,
275+ FullName = blobClient . Name ,
276+ Name = Path . GetFileName ( blobClient . Name ) ,
269277 Uri = blobClient . Uri ,
270278 Container = blobClient . BlobContainerName ,
271279 Length = properties . Value . ContentLength ,
272- CreationTime = properties . Value . CreatedOn ,
280+ CreatedOn = properties . Value . CreatedOn ,
273281 LastModified = properties . Value . LastModified ,
274282 Metadata = properties . Value . Metadata . ToDictionary ( k => k . Key , v => v . Value ) ,
275283 MimeType = properties . Value . ContentType
0 commit comments