优化存储桶文件夹下载的打开文件所在位置
parent
ef5ffb1c74
commit
7d749f70c4
|
|
@ -455,12 +455,13 @@ public class DownViewModel : MvcViewModelBase
|
|||
{
|
||||
var combinePath = Path.Combine(para.FilePath, para.ObjectKey);
|
||||
combinePath = combinePath.Replace("/", "\\");
|
||||
Process.Start("explorer.exe", combinePath);
|
||||
Process.Start("explorer.exe", $"/select,\"{combinePath}\"");
|
||||
}
|
||||
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}\"");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue