DirectoryInfo.GetFiles does not return all files in folder

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I've got a little routine that relies on DirectroyInfo.GetFiles to return a
list of all the files in a specified folder. The folder happens to contain
well over 2800 XML files, yet DirectoryInfo.Getfiles is only returning 305 of
them.

This has totally stumped me and proving to be a show-stopper!

Any ideas?
 
Ben,

Copy one of the files that is not getting returned by GetFiles along
with one that is being returned to a temporary directory and see
whether they both get returned by GetFiles. If one is not showing up in
GetFiles, it means that there is some property of the file preventing
GetFiles from including it in the list.

Best Regards
Johann Blake
 
Back
Top