优化存储桶文件夹下载的打开文件所在位置

dev2.0
陈伟 2025-04-25 10:45:20 +08:00
parent ef5ffb1c74
commit 7d749f70c4
1 changed files with 3 additions and 2 deletions

View File

@ -455,12 +455,13 @@ public class DownViewModel : MvcViewModelBase
{ {
var combinePath = Path.Combine(para.FilePath, para.ObjectKey); var combinePath = Path.Combine(para.FilePath, para.ObjectKey);
combinePath = combinePath.Replace("/", "\\"); combinePath = combinePath.Replace("/", "\\");
Process.Start("explorer.exe", combinePath); Process.Start("explorer.exe", $"/select,\"{combinePath}\"");
} }
else else
{ {
var path = Path.Combine(para.FilePath, para.BucketName);
// 存储桶 // 存储桶
Process.Start("explorer.exe", Path.Combine(para.FilePath, para.BucketName)); Process.Start("explorer.exe", $"/select,\"{path}\"");
} }
} }