[Mono-list] Re: Mono.Unix inside Mono.Posix?

Jonathan Pryor jonpryor at vt.edu
Wed Aug 17 19:22:44 EDT 2005


On Wed, 2005-08-10 at 15:51 -0700, Bob Portmann wrote:
> OK, File.Exists would work for me (since I know already that the file
> exists).  Is there an advantage of using File.Exists over
> Mono.Unix.access?  For example, does Mono.Unix.access work on Windows?

Mono.Unix.Syscall.access will NOT work under Windows.  Windows isn't
POSIX (though it does sport a POSIX subsystem, the POSIX and Win32
subsystems are completely separate such that a Win32 process can't
invoke POSIX subsystem functions).

For cross-platform code, you should stick with System.IO.File.Exists.

 - Jon




More information about the Mono-list mailing list