title: FTP Binary x ASCII automatic selection
body: <p>I program a FTP addon (using python's ftplib) and I wonder what would be the best way to determine, if it should use Binary or ASCII transfer method for a given file. In other words "automatic" transfer mode.</p>
  
  <p>I started looking into this as I got issue report about double lines and googling turned out that binary mode should be responsible [1][2].</p>
  
  <p>It might be using whitelisting or blacklisting extension supposed to be binary or ascii, but it might not be present and of course a question which of the methods (wl x bl,b x a) to use then. It  does not sound solid way enough (imperfect list, lack of extension).</p>
  
  <p>-> question: For a given file what's a solid way to choose either binary or ascii transfer mode? (if there is any...)<br>
  Thank you</p>
  
  <p>[1] <a href="http://www.seo-creative.co.uk/tutorials/ftp-client-giving-you-double-line-breaks/" rel="nofollow">http://www.seo-creative.co.uk/tutorials/ftp-client-giving-you-double-line-breaks/</a><br>
  [2] <a href="http://www.chami.com/html-kit/support/docs/pages/h000114.html" rel="nofollow">http://www.chami.com/html-kit/support/docs/pages/h000114.html</a></p>