下载时按原目录下载
parent
3e5d747021
commit
420e4d90f7
|
|
@ -455,7 +455,7 @@ namespace Hopetry.Services
|
|||
totalBytes = stat.Size;
|
||||
//var localPath = Path.Combine(filePath, objectKey.Replace('/', Path.DirectorySeparatorChar));
|
||||
var localPath = Path.Combine(filePath,
|
||||
objectKey[(objectKey.LastIndexOf('/') + 1)..]);
|
||||
objectKey);
|
||||
var getObjectArgs = new GetObjectArgs()
|
||||
.WithBucket(string.IsNullOrEmpty(bucketName) ? _bucketName : bucketName)
|
||||
.WithObject(objectKey)
|
||||
|
|
|
|||
Loading…
Reference in New Issue