title: Downloading oldest file from Linux FTP server and Windows FTP server
body: <p>I want to  download the oldest file from the directory on the FTP server. </p>
  
  <p>I am connecting to the FTP server using <code>FtpWebrequest</code> to get the list of files in the directory. I use <code>WebRequestMethods.Ftp.ListDirectoryDetails</code> to do so. Once I know the file name, I'll create another FTP connection to download that file.</p>
  
  <p>However, the details I get in the <code>FtpWebResponse</code> stream are in different format when FTP is on Linux and when it's on the Windows. </p>
  
  <ol>
  <li>How to deal with this problem?</li>
  <li>I can write different methods for Linux and Windows that parse the response stream. But for that, at least the way Linux Ftp and Windows FTP provides details should be definite. Do you know if the way details are sent may vary from one Linux FTP server to another? </li>
  <li>I observed (at least on the Windows FTP) that the oldest file is listed at the end of the response stream every time. And the file name is at the end of every line. Can I take it for granted and write a code?</li>
  <li>Can you suggest smarter way of getting the oldest file details?</li>
  </ol>