B4J Question sftp.List( sFolder ) doesn't return a list

B4JExplorer

Active Member
Licensed User
Longtime User
Hi,

How do you get a list of files on an sftp server, after you initialize? The syntax

lstFiles = sftpTest.List( sFolder )


seems to indicate that List( sServerPath ) returns a void.
 

B4JExplorer

Active Member
Licensed User
Longtime User
... also, I tried using



sftpTest.List( sFolder )
...
...
...

Sub sftpTest_ListCompleted( ServerPath As String, Success As Boolean, Folders() As SFtpEntry, Files() As SFtpEntry )

...
...

End Sub


, but it never gets there.

Hate to say this, but more actual samples are needed. So many of my questions, could be answered simply, by a combination of more sample code and trial & error.
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Hate to say this, but more actual samples are needed. So many of my questions, could be answered simply, by a combination of more sample code and trial & error.
You should read the documentation...

The SFTP tutorial covers the unique points related to SFTP and then says that the other methods are covered in the FTP tutorial:
http://www.b4x.com/android/forum/threads/android-sftp-based-on-jsch-tutorial.26994/
http://www.b4x.com/android/forum/threads/android-ftp-tutorial.10407/#post-57940

The FTP tutorial explains these methods.
 
Upvote 0

B4JExplorer

Active Member
Licensed User
Longtime User
You should read the documentation...

The SFTP tutorial covers the unique points related to SFTP and then says that the other methods are covered in the FTP tutorial:
http://www.b4x.com/android/forum/threads/android-sftp-based-on-jsch-tutorial.26994/
http://www.b4x.com/android/forum/threads/android-ftp-tutorial.10407/#post-57940

The FTP tutorial explains these methods.

Yeah, I read it previously. And I just re-read it, and still don't see an example of what I'm trying to accomplish.
 
Upvote 0
Top