June 02, 2013 [Issue 10240] New: It should be possible to check exists and isDir/isFile with a single stat call | ||||
---|---|---|---|---|
| ||||
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@puremagic.com ReportedBy: code@dawg.eu --- Comment #0 from Martin Nowak <code@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: ------- |
Copyright © 1999-2021 by the D Language Foundation