[Mono-list] Mono.Unix.Native.Syscall.(l)stat weirdness
mondalaci at gmail.com
Wed Feb 22 13:52:28 EST 2006
On Fri, 2006-02-17 at 06:28 -0500, Jonathan Pryor wrote:
> On Fri, 2006-02-17 at 00:36 +0100, László Monda wrote:
> > UnixFileSystemInfo seems to be a well-designed abstraction on top of the
> > Unix VFS API, but I'll stick with syscalls, because I don't like
> > UnixFileSystemInfo's exception policy.
> What don't you like about its exception policy?
It was something to do with dangling links. If I remember correctly,
UnixFileSystemInfo throwed an exception on dangling links. I wanted to
subclass this class, but this policy made it unconvenient for me. Of
course, my scenario is rather unusual, because I'm writing a file
manager application and the File class is a critical part of it.
I probably had some other minor issues with UnixFileSystemInfo, but the
above behaviour was the showstopper.
In the end, I implemented my own File class. You may want to take a
look at it:
More information about the Mono-list