下载时按原目录下载

dev2.0
陈伟 2025-07-05 11:36:25 +08:00
parent 3e5d747021
commit 420e4d90f7
1 changed files with 1 additions and 1 deletions

View File

@ -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)