To get a list of only the names of multiple files, a file group, a directory, or a library, use the NLST FTP server subcommand:
NLST [directory | name]
It lists only those files that FTP can transfer.