title: ftplib checking if a file is a folder?
body: <p>How can i check if a file on a remote ftp is a folder or not using ftplib?</p>
  
  <p>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?</p>
  
  <p>Is there a better way? I cannot parse the output of list, since there is about a dozen different ftp servers(many extremely old.)</p>
  
  <p>What should i do?</p>