-
Notifications
You must be signed in to change notification settings - Fork 8
Description
Hello , i'm using this package to upload files from my local directory to the SFTP server , however even tho the files exist and have read write permissions , for some reason i have a 'file path does not exist or is invalid' exception...
this is how i used the upload method while going through the list of my files :
String? sftpPath = await strg.Client.sftpUpload(
path: element.absolute.path,
toPath: ".",
callback: (progress) async {
dev.log(
'(SFTP) file upload : ${element.path} progress : $progress');
});
this is my log :
[log] (SFTP)Client Connect : session_connected
[log] (SFTP) sftpConnected : sftp_connected
[log] (SFTP) upload list length : 3
[log] (SFTP) element path : /data/user/0/com.example.app_13/files/rmt/2023-06-01T16:01:54.055876.png
[log] (SFTP) element exists : true
[log] (SFTP) element permissions rw-------
[log] (SFTP) uploaderror :PlatformException(upload_failure, The file path does not exist or is invalid., null, null)
any help is appreciated.