February 01, 2012 [Issue 7002] std.path needs a isValidFilePath function | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrej Mitrovic | http://d.puremagic.com/issues/show_bug.cgi?id=7002 Lars T. Kyllingstad <bugzilla@kyllingen.net> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bugzilla@kyllingen.net --- Comment #10 from Lars T. Kyllingstad <bugzilla@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: ------- |
February 01, 2012 [Issue 7002] std.path needs a isValidFilePath function | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrej Mitrovic | http://d.puremagic.com/issues/show_bug.cgi?id=7002 Andrej Mitrovic <andrej.mitrovich@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |INVALID -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation