dartssh2 icon indicating copy to clipboard operation
dartssh2 copied to clipboard

sftp stuck right after transfer completion

Open ganeshchenniah opened this issue 2 years ago • 2 comments

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));

ganeshchenniah avatar Mar 23 '23 09:03 ganeshchenniah

Any Update on this issue ? It still gets stuck after 100% transfer completion. Should we do any sync or something .

ganeshchenniah avatar May 11 '23 12:05 ganeshchenniah

i have the same problem , i tried deleting the files from my local storage after the upload is completed but it didn't work , also , this doesn't happen every time , sometimes the transfer doesn't get stuck after completion

brahimmasmudi avatar Jun 08 '23 08:06 brahimmasmudi

Same problem as #100, see my fix

obemu avatar Jul 30 '24 13:07 obemu

Many thanks for opening this! Duplicated and fixed in 2.10.0 version

vicajilau avatar Aug 29 '24 16:08 vicajilau