https://issues.dlang.org/show_bug.cgi?id=10240

--- Comment #1 from RazvanN <[email protected]> ---
There are 2 ways to solve this:

1. Either check that the file or directory exists inside the isDir/isFile
functions and return false if the path does not exist or the input string
doesn't designate a directory/file. This is troublesome since you have one
value for 2 different semantics.

2. Create a function existsAndIsDir/File where you can call stat a single time.
This means adding 2 new functions that add no extra functionality for the
benefit of a micro-optimization.

In my opinion we should close this as WONTFIX.

--

Reply via email to