By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,150 Members | 1,216 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,150 IT Pros & Developers. It's quick & easy.

ftplib.FTP.nlst() behaviour on empty dirs

P: n/a
Hello,

I am using the ftplib.FTP.nlst() method to list the files in
a directory on a FTP server. But when the directoty is empty,
python raises an error:

ftplib.error_perm: 550 No files found.

I find this behaviour very strange. Why not simply return an empty
list?

What do I do?

/M
Jul 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.