Skip to content

How do I break the transfer of a stream #1447

@zundaren

Description

@zundaren

Hi, I am using fastPut and fastGet of this library to get the high-speed transfer, but I have a request to interrupt the transfer so that the user can break the transfer, can I add a flag bit so that the developer can set a time to interrupt the stream transfer。

this.sftp?.fastPut(local, remote, atomicBreak, {
      step: (transferd, chunk, totalSize) => {
        console.log(transferd, totalSize);
      },
    }, (err) => {
      if (err) {
        console.error("error: ", err);
      }
    })

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions