KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
How can i check if a file on a remote ftp is a folder or not using ftplib? Best way i have right now is to do a nlst, and iterate through calling size on each of the files, if the file errors out then it is a folder? Is there a better way? I cannot parse the output of list, since there is about a dozen different ftp servers(many extremely old.) What should i do?
Tags (comma-separated)
Save Edits
Cancel