[Mono-list] problems with Directory::GetParent()
Duncan Mak
duncan@ximian.com
26 Jan 2003 15:02:24 -0500
On Sun, 2003-01-26 at 14:15, Varga Zoltan wrote:
> Hi,
>
> It seems that System.IO.Directory::GetParent() is broken, ie.
> GetParent ("/a/b") returns "a/b"
>
> The fix is to replace:
> return new DirectoryInfo
> (Path.GetDirectoryName (path +
> Path.DirectorySeparatorChar + ".."));
>
> with:
> return new DirectoryInfo
> (Path.GetDirectoryName (path))
>
Hello Zoltan!
I see that you've posted this message 3 times already and you're itching
to commit this change.
Please, go ahead and check it in!
[15:01] <miguel> duncan, oh yes, approved.
;-)
--
Duncan Mak <duncan@ximian.com>