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