[Mono-list] ASP.NET on Mac OS X
Gonzalo Paniagua Javier
Mon, 09 Feb 2004 17:31:10 +0100
El dom, 08-02-2004 a las 18:52, Jonathan LaCour escribió:
> On Feb 8, 2004, at 12:28 PM, Dan Winship wrote:
> > That's a property of the filesystem though, not the OS. OS X does let
> > you have UFS or case-sensitive HFS partitions (and OS X Server defaults
> > to using a case-sensitive filesystem).
> > If this were a POSIX C program, I'd say that you should stat() both
> > files and only throw the exception if they have the same st_ino. But I
> > don't know if you can translate that into C#/.Net.
> I didn't even think of that. You are correct, knowing that you are on
> Mac OS X actually doesn't fix the problem. We need to manually check
> to see if they are the same file. My bug probably should be updated to
> take this into account.
[Just got into this thread. Dunno where to hook, but ...]
I fixed the issue by doing Directory.GetFiles ("Web.config") when one or
both files exist. If both 'web.config' and 'Web.config' are reported to
exists (File.Exists) and Directory.GetFiles ("Web.config").Length is <
2, then there's no error. Please, test with current CVS to ensure that