This is the full listing for "/";
Waiting for debugger to connect...
Program started.
*****************************************************************************
(FTPFile) drwxr-xr-x 1 owner group 4096 Dec 31 2013 Samsung
(FTPFile) drwxr-xr-x 1 owner group 4096 Dec 15 2015 Android
(FTPFile) drwxr-xr-x 1 owner group 4096 Jan 9 2016 .mobvista
(FTPFile) drwxr-xr-x 1 owner group 4096 Mar 7 2016 tbs
(FTPFile) drwxr-xr-x 1 owner group 4096 Sep 17 2016 OLYMPUS
(FTPFile) drwxr-xr-x 1 owner group 4096 Jan 11 2016 .KRSDK
(FTPFile) drwxr-xr-x 1 owner group 4096 Jan 12 2016 .SDKDownloads
(FTPFile) drwxr-xr-x 1 owner group 4096 Jan 15 2016 Playlists
(FTPFile) drwxr-xr-x 1 owner group 4096 Jun 10 15:15 data
(FTPFile) drwxr-xr-x 1 owner group 4096 Mar 29 20:20 Download
(FTPFile) drwxr-xr-x 1 owner group 4096 Jul 18 11:11 DCIM
(FTPFile) drwxr-xr-x 1 owner group 4096 Mar 7 2016 tencent
(FTPFile) drwxr-xr-x 1 owner group 4096 Oct 27 2015 .here-maps
(FTPFile) drwxr-xr-x 1 owner group 4096 May 6 2019 Pictures
(FTPFile) drwxr-xr-x 1 owner group 4096 Jan 16 2016 com.android.calendar.subscription.a
(FTPFile) drwxr-xr-x 1 owner group 4096 Jan 23 2020 Books
(FTPFile) drwxr-xr-x 1 owner group 4096 Jan 9 2016 360
(FTPFile) drwxr-xr-x 1 owner group 4096 Dec 15 2015 LD-Log_FREE
(FTPFile) drwxr-xr-x 1 owner group 4096 Jul 13 2016 rdtmp
(FTPFile) drwxr-xr-x 1 owner group 4096 Aug 2 2016 Documents
(FTPFile) drwxr-xr-x 1 owner group 4096 Aug 18 2016 ShareMemo
(FTPFile) drwxr-xr-x 1 owner group 4096 Aug 22 2016 Media
(FTPFile) drwxr-xr-x 1 owner group 4096 Dec 15 2018 com.grppl.android.shell.CMBlloydsTSB73
(FTPFile) drwxr-xr-x 1 owner group 4096 Jan 8 2019 .EmailTempImage
(FTPFile) drwxr-xr-x 1 owner group 4096 Feb 10 2018 duapps
(FTPFile) drwxr-xr-x 1 owner group 4096 Feb 1 2017 MyHeart
(FTPFile) drwxr-xr-x 1 owner group 4096 Feb 1 2017 Blood Pressure
(FTPFile) drwxr-xr-x 1 owner group 4096 Oct 13 2019 SuperCam
(FTPFile) drwxr-xr-x 1 owner group 4096 Oct 13 2019 XMEye
(FTPFile) drwxr-xr-x 1 owner group 4096 Oct 17 2019 homesafeview
(FTPFile) drwxr-xr-x 1 owner group 4096 Feb 23 2020 baidu
(FTPFile) drwxr-xr-x 1 owner group 4096 Sep 8 2017 videorecord
(FTPFile) drwxr-xr-x 1 owner group 4096 Sep 8 2017 HB
(FTPFile) drwxr-xr-x 1 owner group 4096 Sep 8 2017 snapshot
(FTPFile) drwxr-xr-x 1 owner group 4096 Sep 8 2017 .LocalXml
(FTPFile) drwxr-xr-x 1 owner group 4096 Oct 25 2019 Voice Recorder
(FTPFile) drwxr-xr-x 1 owner group 4096 Sep 9 2017 Mob
(FTPFile) drwxr-xr-x 1 owner group 4096 Sep 9 2017 ViewerAuth_com.ichano.athome.camera
(FTPFile) drwxr-xr-x 1 owner group 4096 Sep 9 2017 AtHome
(FTPFile) drwxr-xr-x 1 owner group 4096 Nov 26 2019 swannsecurity
(FTPFile) drwxr-xr-x 1 owner group 4096 Sep 9 2017 Ivideon
(FTPFile) drwxr-xr-x 1 owner group 4096 Sep 9 2017 temp
(FTPFile) drwxr-xr-x 1 owner group 4096 Feb 25 2020 WhatsApp
(FTPFile) drwxr-xr-x 1 owner group 4096 Jun 2 15:15 Smart AudioBook Player Backup
(FTPFile) -rw-r--r-- 1 owner group 3037 Nov 3 2015 Contacts.vcf
(FTPFile) -rw-r--r-- 1 owner group 262 Nov 8 2015 driveinfo.calibre
(FTPFile) -rw-r--r-- 1 owner group 876 Nov 8 2015 metadata.calibre
(FTPFile) -rw-r--r-- 1 owner group 6 Jan 9 2016 qs.pid
(FTPFile) -rw-r--r-- 1 owner group 400615 Sep 15 12:12 ota
(FTPFile) -rw-r--r-- 1 owner group 697 Oct 15 2017 userconfig.dat
Also attached a new test version of the code;
Sub Process_Globals
Private fx As JFX
Private MainForm As Form
Public timeout = 60000 As Int
Public usr = "Test" As String
Public pwd = "test" As String
Private ftfIP = "192.168.1.65" As String
Private ftfPort = 51041 As Int
End Sub
Sub AppStart (Form1 As Form, Args() As String)
MainForm = Form1
MainForm.Show
Dim PagesManager As B4XPagesManager
PagesManager.Initialize(MainForm)
Dim Ftp As FTP
Ftp.Initialize("ftp",ftfIP,ftfPort,usr,pwd) '
Ftp.PassiveMode=True
Ftp.TimeoutMs=timeout
Dim sf As Object = Ftp.List("/")
Wait For (sf) ftp_ListCompleted (ServerPath As String, Success As Boolean, Folders() As FTPEntry, Files() As FTPEntry)
Log(ServerPath)
If Success Then
For Each f As FTPEntry In Folders
Log(f)
Next
For Each f As FTPEntry In Files
Log(f)
Next
End If
Ftp.Close
End Sub
Have also tried;
ftp.List("/Android")
ftp.List("/Android/")
ftp.List("")
Ftp.List("/storage/emulated/0/data")
Ftp.List("/storage/emulated/0")
All give exactly the same file list.
Thanks,
Al