case sensitivity in path names

Apr 16, 2008 at 4:55 AM
I'm implementing the ext2 filesystem and found that when you call File.Exists(), the path is converted to lower case before the query is done. Are paths and file names intended to be case-insensitive as on windows? The shell seems to be case sensitive when running "dir". "dir /INIT" fails...
Coordinator
May 8, 2008 at 11:42 PM

Krusty wrote:
I'm implementing the ext2 filesystem and found that when you call File.Exists(), the path is converted to lower case before the query is done. Are paths and file names intended to be case-insensitive as on windows? The shell seems to be case sensitive when running "dir". "dir /INIT" fails...


Yes, a number of our libraries make the assumption that filenames are case-insensitive, because all the filesystems we support are case-insensitive. To add support for ext2, you may have to modify the codebase in order to remove this assumption (particularly CLR libraries such as System.Io). Let me know if you need any help with this, and apologies for the slow response.
--
Derrick Coetzee
Microsoft Research Operating Systems Group developer