[Issue 10240] New: It should be possible to check exists and isDir/isFile with a single stat call
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jun 2 05:25:02 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10240
Summary: It should be possible to check exists and isDir/isFile
with a single stat call
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: code at dawg.eu
--- Comment #0 from Martin Nowak <code at dawg.eu> 2013-06-02 05:25:01 PDT ---
In std.file the functions isDir, isFile and dirEntry all throw if a path does
not exist.
Therefor one needs a separate stat call to test for existence.
Also dirEntry does enforce again that a path exists.
--
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