Summary: std.file.remove throws Exception on success
           Product: D
           Version: 2.041
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos

--- Comment #0 from Jesse Phillips <> 2010-05-14 
16:46:02 PDT ---
Using remove on a file that does not exist will result in a exception that is
not clear what the issue is, example below:

import std.file;

void main() {

std.file.FileException: In std\file.d(400), data file IDontExist.txt: The
operation completed successfully.

The FileException states the "operation completed successfully" this is not
actually the case since there was nothing to remove.

Even though it had nothing to remove I think it is reasonable to consider the
operation successful at which point it shouldn't be throwing an Exception.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to