Re: ftplib.nlst gives error on empty directory

2007-12-07 Thread Giampaolo Rodola'
On 7 Dic, 10:42, loial <[EMAIL PROTECTED]> wrote: > Trying to use ftplib.FTP.nlst() method to list the files in > a directory on a FTP server. > > It works fine except when there are no files in the directory. Then it > gives the error > > ftplib.error_perm: 550 No files found. > > How can I handl

ftplib.nlst gives error on empty directory

2007-12-07 Thread loial
Trying to use ftplib.FTP.nlst() method to list the files in a directory on a FTP server. It works fine except when there are no files in the directory. Then it gives the error ftplib.error_perm: 550 No files found. How can I handle this cleanly? -- http://mail.python.org/mailman/listinfo/py