470,855 Members | 1,203 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,855 developers. It's quick & easy.

ftplib.FTP.nlst() behaviour on empty dirs

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
0 1494

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Matija Papec | last post: by
2 posts views Thread by siggy2 | last post: by
1 post views Thread by Peter A. Schott | last post: by
2 posts views Thread by Harlin Seritt | last post: by
1 post views Thread by loial | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.