<< back to sysax.com Product page

4.9. Non RFC959 compliant FTP servers

Some legacy FTP servers produce folder content listings in non-standard formats. In these cases, the setnlst command can be used to provide a name-only listing. When a listing is obtained in this manner, only the .name property of each list item is available for use in a foreach loop. Name-only listings may be turned off using the unsetnlst command.

Exhibit 4.25. Syntax of commands setnlst and unsetnlast

setnlst;

unsetnlst;

Exhibit 4.26. Example for using the setnlst and unsetnlast commands

setnlst; #enable name-only listing

unsetnlst; #disable name-only listing