dotgnu-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [DotGNU]System.IO.Directory.GetDirectoryRoot()


From: Rhys Weatherley
Subject: Re: [DotGNU]System.IO.Directory.GetDirectoryRoot()
Date: Wed, 30 Oct 2002 16:45:21 +1000

Charles Shuller wrote:
> 
> The standard defines this function very clearly for windows with the
> following example:
> 
> Input                   Output
> \                       C:
> C:\stuff\morestuff      C:
> \\somewhere\there\foo   \\somewhere\there
> 
> The latter for windows drive sharing stuff.  The question is, on unix
> systems this function should alwayse return '/' correct??  Or should it
> return the physical device, i.e. /dev/hda0 like the windows functions do?

"/" would seem the best bet (/dev/hda0 is a device, not a directory).
Even better, abstract it behind a function in "support" so that it
can potentionally be implemented the Windows way on that platform.

Cheers,

Rhys.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]