Premesso che l'ho provato su un tablet non mio ma che riceve e fa messaggi e telefonate con una sim tim questo è il codice
Sub CaricaCSVDaCloud (ServerFolder As String)
ProgressDialogShow2("Importazione chiamate dal server cloud",False)
ftp.Initialize("FTP", IndirizzoFTP, PortaFtp, UserIDFTP, PasswordFTP)
ftp.List(ServerFolder)
Wait For FTP_ListCompleted (ServerPath As String, Success As Boolean, Folders() As FTPEntry, Files() As FTPEntry)
If Success Then
For Each f As FTPEntry In Files
ftp.DownloadFile(ServerPath & "/" & f.Name, False, File.DirDefaultExternal & "/Scambio", f.Name)
Wait For FTP_DownloadCompleted (ServerPath2 As String, Success As Boolean)
Log($"File ${ServerPath2} downloaded. Success = ${Success}"$)
Next
End If
ProgressDialogHide
Come dicevo è scopiazzato da uno degli esempi del sito b4a