title: C# class to parse WebRequestMethods.Ftp.ListDirectoryDetails FTP response
body: <p>I'm creating a service to monitor FTP locations for new updates and require the ability to parse the response returned from a <strong>FtpWebRequest</strong> response using the <strong>WebRequestMethods.Ftp.ListDirectoryDetails</strong> method. It would be fairly easy if all responses followed the same format, but different FTP server software provide different response formats.</p>
  
  <p>For example one might return:</p>
  
  <pre><code>08-10-11  12:02PM       &lt;DIR&gt;          Version2
  06-25-09  02:41PM            144700153 image34.gif
  06-25-09  02:51PM            144700153 updates.txt
  11-04-10  02:45PM            144700214 digger.tif
  </code></pre>
  
  <p>And another server might return:</p>
  
  <pre><code>d--x--x--x    2 ftp      ftp          4096 Mar 07  2002 bin
  -rw-r--r--    1 ftp      ftp        659450 Jun 15 05:07 TEST.TXT
  -rw-r--r--    1 ftp      ftp      101786380 Sep 08  2008 TEST03-05.TXT
  drwxrwxr-x    2 ftp      ftp          4096 May 06 12:24 dropoff
  </code></pre>
  
  <p>And other differences have been observed also so there's likely to be a number of subtle differences I haven't encountered yet.</p>
  
  <p>Does anyone know of a fully managed (doesn't require access to external dll on Windows) C# class that handles these situations seamlessly?</p>
  
  <p>I only need to list the contents of a directory with the following details: File/directory name, last updated or created timestamp, file/directory name.</p>
  
  <p>Thanks in advance for any suggestions,
  Gavin</p>