[Mono-dev] DirectoryInfo.GetDirectories Bug

Jonathan Pobst monkey at jpobst.com
Fri May 23 15:21:22 EDT 2008


Hey guys, I am working on bug #393931.  Basically the bug is that 
winforms' open file dialog sorts directories case sensitive instead of 
insensitive, so directories like "Mono" and "Projects" come before "bin".

The code we use is this:

DirectoryInfo di = new DirectoryInfo (Environment.CurrentDirectory);
DirectoryInfo[] dirs = di.GetDirectories ();

foreach (DirectoryInfo d in dirs)
	Console.WriteLine (d.Name);

On Windows, this would return:
A, b, C

On Linux, this would return:
A, C, b

I realize the Linux filesystem is different, but my question is do we 
want to replicate the Windows behavior on Linux or not?  If not, I can 
work around it in winforms, but I thought this might be something we 
wanted to emulate MS on.  (MONO_IOMAP has no effect either.)

Thanks!
Jonathan


More information about the Mono-devel-list mailing list