FileSystemWatcher Events Have Lower Case Paths

  • Thread starter Thread starter Bill Hauver
  • Start date Start date
B

Bill Hauver

I am using a FileSystemWatcher and noticed that
FileSystemEventArgs always returns filenames/paths in all
lower case. Does anyone know if this is by design or am I
missing a property setting?

Thanks - Bill Hauver
 
I am using a FileSystemWatcher and noticed that
FileSystemEventArgs always returns filenames/paths in all
lower case. Does anyone know if this is by design or am I
missing a property setting?

It looks like this is a problem:

http://tinyurl.com/nfen

Why do you need the case to match exact? Will this be for display to
the user?
 
I guess I am not the first to discover this problem... Thanks for the
feedback. I need the filenames in the correct case to display to the
user.

I have worked around the issue by using the
System.IO.Directory.GetFiles() using the FileSystemEventArgs parameters
(breaking apart the path and filename so it will return the file I am
looking for) and it is in the correct case. Would be nice if this is
fixed sometime in a future release.

Thanks again - Bill H
 
Back
Top