By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,029 Members | 1,330 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,029 IT Pros & Developers. It's quick & easy.

FileSystemWatcher Events Have Lower Case Paths

P: n/a
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
Nov 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
In article <07****************************@phx.gbl>,
bi*********@certegy.com says...
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?

--
Patrick Steele
Microsoft .NET MVP
http://weblogs.asp.net/psteele
Nov 20 '05 #2

P: n/a
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

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.