title: c# check files on server using web client
body: <p>C# 2008 </p>
  
  <p>I have using the WebClient DownloadFile method.</p>
  
  <p>I can download the files I want. However, the client has insisted on creating different folders which will contain the version number. So the name of the folders would be something like this: 1.0.1, 1.0.2, 1.0.3, etc.</p>
  
  <p>So the files will be contained in the latest version in this case folder 1.0.3. However, how can my web client detect which is the latest one? </p>
  
  <p>The client will check this when it starts up. Unless I actually download all the folders and then compare. I am not sure how else I can do this.</p>
  
  <p>Many thanks for any advice,</p>