Skip to content

Feature Request: downloadFile无法支持断点续传,每次都会重新下载为一个新文件,对于大文件下载不友好 #204

Open
@kalryoma

Description

@kalryoma

Output: fs.createWriteStream(FilePath),

const writeStream = fs.createWriteStream(FilePath, {

@livehigh 看了一下源码,这两处没有对FilePath已下载的部分进行比对,如果满足续传比对,应当从当前已下载的部分之后的位置开始请求和写入。目前是每次都从头开始下载/分片下载。希望能针对下载大文件(几十G)的场景进行优化,感谢。

Activity

livehigh

livehigh commented on Apr 28, 2024

@livehigh
Collaborator

感谢反馈 这块已有排期计划支持哈~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    planning规划中 待实现

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @kalryoma@livehigh

        Issue actions

          Feature Request: downloadFile无法支持断点续传,每次都会重新下载为一个新文件,对于大文件下载不友好 · Issue #204 · tencentyun/cos-nodejs-sdk-v5