Script

FTP

The professional tool to automate FTP, SFTP, FTPS

and schedule FTP batch jobs

MENU MENU
Post here if you experience file transfer problems or unexpected errors.
I'm using version 4.5 of ScriptFTP, and running a script with GETLIST() to check whether a file is present before I attempt to download it. The code worked well on the original ftps server, but fails at the GETLIST() when I run the same script on their new server.

Would you be able to tell me what ftp command is issued by ScriptFTP when I call GETLIST()? It might be as simple as requesting they enable the command at the server.

Thanks,

John
Hello John,

The commands that ScriptFTP uses for requesting file listings is MLSD. On very old FTP servers, where MLSD is not supported, it uses LIST.

I have attached a screenshot with the detailed output enabled for further reference.
Attachments
MLIST_script_ftp.jpg
MLIST_script_ftp.jpg (123.88 KiB) Viewed 1330 times