Traerte los nombres de los ficheros de una carpeta por FTP

conex is int

conex = FTPConnect("ftp.myweb.com", "myuser", "mykey")

IF conex < 0 THEN
   //info("no hay conexion")
   RETURN
END

// se usa para preparar la cadena de devolucion
cCadena is string

FTpFileList is string = FTPListFile(conex, "/www/ots/201705/*.PDF",FileList,ftpFile)

afile is string

FOR EACH STRING afile OF ResName SEPARATED BY CR
    Info(afile)
END

//******* Procedures
PROCEDURE FileList(name)
     cCadena = cCadena + name + CR
RESULT True

Del procedure sólo tomamos el nombre... pero se podrian poner todas las opciones:

PROCEDURE FileList(Name, nSize, sAttribute, sDate, sTime, nParam)