Skip to content

sftp stuck right after transfer completion #71

@ganeshchenniah

Description

@ganeshchenniah

I m using below code to upload data . May i know where to add onProgress call . BTW i m using linux platform.

client = SSHClient(
await SSHSocket.connect('$ip', 22),
username: 'root',
onPasswordRequest: () => 'passwd',
// printTrace:print,
// printDebug: print,
);
final sftp = await client.sftp();

The below code gets stuck right after transfer completion sometimes . Do you know how to over come ?
sftp
await file.write(File('${appDocPath}/file.tgz').openRead().cast(), onProgress: (total) => print(total));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions