Page 1 of 1

Browse files with FTP commands

Posted: Mon Jan 12, 2009 1:57 pm
by Seneka77
How to get the list of files, directories? I tried this:

put libURLftpCommand("PWD",field "Entrada IP", field "Entrada usuario", field "Entrada contraseña") & CRLF after field "Directorio"
put libURLftpCommand("CWD /",field "Entrada IP", field "Entrada usuario", field "Entrada contraseña") & CRLF after field "Directorio"
put libURLftpCommand("PASV",field "Entrada IP", field "Entrada usuario", field "Entrada contraseña") & CRLF after field "Directorio"
answer libURLftpCommand("NLST ",field "Entrada IP", field "Entrada usuario", field "Entrada contraseña")

but always fails.
Also I dunno the use of this instruction:

libURLSetFTPListCommand "LIST"