Hi, When STAT is used for the list on drftpd servers, lftp doesn't seem to cache the list for use with tab completion.
Steps for reproduction: 1. start the latest stable lftp (version 3.7.15) 2. enter "set ftp:use-stat-for-list yes" 3. enter "open -d <path_to_drftpd_server>" 4. enter "ls" 5. type "cd " then hit the tab key 6. instead of showing the cached list of folders, lftp tries using: ---> PRET NLST ---> PASV ---> NLST This should not be happening as i have no settings enabled to use NLST, and lftp should already have a cached listing from STAT which it can use. Also, if you repeat the steps above but use "cls" instead of "ls" you will see the following output: ---> STAT . <--- 213 End of Status ---> PROT P <--- 200 Command okay ---> PRET NLST ---> PASV ---> NLST <--- 200 OK, will use master for upcoming transfer ... The above series of commands is redundant, and again it shouldn't be using NLST at all. lftp does the same thing with the mirror command when getting the list of files. It's worth noting again that I can only reproduce this on drftpd servers. All others I've tested are properly caching the list for use with tab completion. Because of this I can only speculate that it may have something to do with PRET, a feature exclusive to drftpd. Thanks, - Kyle
