'Setup to use FTP
Dim FTP As FTPClass
FTP.Initialize(Activity, "ftp.yourdomain.com", "username", "password", 21, True)
'to download a group of files
FTP.FTP_ListFiles2(File.DirInternal & "/downloads", Array As String("firstfiles*.txt", "secondfiles*.doc", "thirdfiles*.bmp"), False)
'to upload a group of files
FTP.FTP_ListLocalFiles("test/files", Array As String(File.DirInternal&"/downloads/"&"first*.txt", File.DirInternal&"/downloads/"&"second*.txt", File.DirInternal&"/downloads/"&"third*.txt"))
'to upload a single file
FTP.FTP_UpLoadFile(File.DirInternal, "test/files/", "plane.jpg")
'to download a single file
FTP.FTP_DownLoadFile(File.DirInternal, "test/files/", "plane.jpg", False)
'to see the last activity of uploads and downloads
FTP.FTP_LastUploadStats
FTP.FTP_LastDownloadStats