I have to retract my previous claim. I have been testing std.file.exists(name) with a filename passed to my D program via an environment variable. When I hard-code the name in the program source the function works, so the error is not in std.file.exists.