[Issue 7002] std.path needs a isValidFilePath function
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Feb 1 14:27:40 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7002
Lars T. Kyllingstad <bugzilla at kyllingen.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bugzilla at kyllingen.net
--- Comment #10 from Lars T. Kyllingstad <bugzilla at kyllingen.net> 2012-02-01 14:27:36 PST ---
Sorry for coming late to the party, but I totally agree with Jonathan on this.
Such a function does not seem generic enough to warrant inclusion in the
standard library, and std.path already provides the building blocks making it a
one-liner:
bool isDefinitelyADir(string path)
{
return isValidPath(path) && isDirSeparator(path[$-1]);
}
--
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