feat: allow keep files in offline download (close #4678)

This commit is contained in:
Andy Hsu
2023-11-24 15:02:36 +08:00
parent d455a232ef
commit b6134dc515
3 changed files with 30 additions and 8 deletions

View File

@ -125,10 +125,11 @@ func (t *DownloadTask) Complete() error {
for i, _ := range files {
file := files[i]
TransferTaskManager.Add(&TransferTask{
file: file,
dstDirPath: t.DstDirPath,
wg: &wg,
tempDir: t.TempDir,
file: file,
dstDirPath: t.DstDirPath,
wg: &wg,
tempDir: t.TempDir,
deletePolicy: t.DeletePolicy,
})
}
return nil