On Wed, May 24, 2006 at 07:36:47AM -0400, Jonathan Pryor wrote: > In general, you don't, since a mount point can be anywhere...
(Disclaimer: All code and pseudocode in this post are normal C and normal POSIX, I have no idea what the corresponding things are for .NET or Mono) As a side note, it is quite trivial. One can check whether somedir is a mount point by stat()ing somedir and somedir/.. and comparing their device (st_dev). Or by checking whether somedir and somedir/.. point to the same inode on the same device. -- Petri Latvala
signature.asc
Description: Digital signature
_______________________________________________ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list