[Issue 10348] isRooted is either wrong or poorly specified
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jul 28 08:59:26 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10348
Lars T. Kyllingstad <bugzilla at kyllingen.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
CC| |bugzilla at kyllingen.net
AssignedTo|nobody at puremagic.com |bugzilla at kyllingen.net
--- Comment #2 from Lars T. Kyllingstad <bugzilla at kyllingen.net> 2013-07-28 08:59:24 PDT ---
Surely \ is a valid path on Windows. Just open cmd.exe and run
dir \
and it will list the files in the root directory of the current drive.
I agree that absoluteDir(`\`) returns a wrong result. It should probably
return rootName(base) instead. I'll take care of it.
Whether isRooted(`\`) should be true or false is just a matter of definition.
`\` refers to the *root directory* of the current drive, so it made sense to me
to define it as true. Redefining it now would be a breaking change. If you
think it is worth it, it should at least be brought up for community discussion
first.
--
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