title: FileInfo unable to find specified file exception
body: <p>I have what could be an unusual problem. My problem is that I have a collection of file paths which contain the filenames too. As the code loops round the collection it takes the string and creates a FileInfo object. With this object it then uses the MoveTo method to move the file to another location. </p>
  
  <p>This all works well until it reaches a file with a zero length and says it cannot find the file. If I take this file and create a FileInfo object in a different application it works regardless of size. Does anyone know about what is causing this and how to solve it? Relevant code snippet below </p>
  
  <pre><code>IList&lt;string&gt; files = new List&lt;string &gt;();
  files.add(file1);
  files.add(file2);
  
  foreach (string filepath in files) 
  {
      FileInfo file = new FileInfo (filepath);
      string newlocation = Path.Combine(dest, file.name);
  
      file.MoveTo (newlocation); //exception thrown here on zero length 
  }
  </code></pre>