ftplib.nlst gives error on empty directory
- From: loial <jldunn2000@xxxxxxxxxxxxxx>
- Date: Fri, 7 Dec 2007 01:42:23 -0800 (PST)
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?
.
- Follow-Ups:
- Re: ftplib.nlst gives error on empty directory
- From: Giampaolo Rodola'
- Re: ftplib.nlst gives error on empty directory
- Prev by Date: Re: Erros when compiling a CPP program which uses CPython API functions
- Next by Date: Re: Speed of Nested Functions & Lambda Expressions
- Previous by thread: Any simpler way to do this
- Next by thread: Re: ftplib.nlst gives error on empty directory
- Index(es):