parent
b42ea1f55c
commit
9bde00c143
|
|
@ -251,7 +251,7 @@ public class MinioDownloadTask : NotifyPropertyChangedBase
|
|||
// 验证文件是否存在
|
||||
if (File.Exists(Path.Combine(FilePath, item.Key))) continue;
|
||||
var localDir = Type == 1 ? FilePath : Path.Combine(FilePath, BucketName);
|
||||
await Minio.DownLoadObject(BucketName, item.Key, localDir, item.ETag);
|
||||
await Minio.DownLoadObject(BucketName, item.Key, localDir, item.ETag, StopDownTs.Token);
|
||||
DownloadNumber++;
|
||||
DownloadInfo = $"{DownloadNumber}/{FileNumber}";
|
||||
Speed = "下载中";
|
||||
|
|
|
|||
|
|
@ -505,7 +505,7 @@ public class DownViewModel : MvcViewModelBase
|
|||
BucketName = bucketName,
|
||||
FileName = objectKey,
|
||||
Status = "等待中",
|
||||
DownloadInfo = "0/na",
|
||||
//DownloadInfo = "0/na",
|
||||
Speed = "等待中",
|
||||
CreateTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"),
|
||||
// 1 文件夹 2 存储桶
|
||||
|
|
|
|||
Loading…
Reference in New Issue