[Issue 10348] isRooted is either wrong or poorly specified
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jul 28 13:24:19 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10348
--- Comment #3 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-07-28 13:24:17 PDT ---
(In reply to comment #2)
> I agree that absoluteDir(`\`) returns a wrong result. It should probably
> return rootName(base) instead. I'll take care of it.
.net seems to return the drive path, e.g.:
-----
using System;
using System.IO;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
string path1 = "\\";
string fullPath;
fullPath = Path.GetFullPath(path1);
Console.WriteLine("GetFullPath('{0}') returns '{1}'", path1,
fullPath);
}
}
}
-----
Prints:
GetFullPath('\') returns 'c:\'
So I guess only 'absolutePath' needs to be fixed.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list