B4A Library Android SFTP based on JSch tutorial

MarcRB

Active Member
Licensed User
Longtime User
I found the mistake:

I previous used FTP instead of SFTP. I changed my code to use SFTP by Jsch.
During that change I didn't noticed that the listcompleted event at sftp was slightly different from the listcompleted event at ftp.
Because it has two parameters that contains Sftp instead of ftp. The example was working well because it was changed to sftp.

The message pointed me to the sftp certificate because of the word 'signature'.
Now I know signature is also used to name the event with its arguments.

Case solved!
 

Knoppi

Active Member
Licensed User
Longtime User
Wishes: (B4A and B4J)
  • authentication with pre-shared key
  • AppendFile
  • SendCommand
it would be great if that with sftp would be possible
 

Nozavi

New Member
Licensed User
Longtime User
Sooo it's not possible to use this library to send remote commands? After all, that's a key feature of SFTP connections...
 

serg992313

Member
Please advise, how can I delete empty folder from sFTP server. I've tried sftp.DeleteFile (/upload/123/), where "123" is folder for delete, but without success.
 

vecino

Well-Known Member
Licensed User
Longtime User
Please advise, how can I delete empty folder from sFTP server. I've tried sftp.DeleteFile (/upload/123/), where "123" is folder for delete, but without success.
Do you have permission to delete it?
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…