Thread overview | |||||||||
---|---|---|---|---|---|---|---|---|---|
|
August 26, 2005 std.file.exists = 0 when the file exists. | ||||
---|---|---|---|---|
| ||||
When calling on std.file.exists(FileName) it returns 0 when the file exists. Is this correct? What are the truth values of ints in D? Surely must 0 =3D false and 1 =3D true? //Adam |
August 26, 2005 Re: std.file.exists = 0 when the file exists. | ||||
---|---|---|---|---|
| ||||
Posted in reply to Adam Lindberg | Adam Lindberg escribió: > When calling on std.file.exists(FileName) it returns 0 when the file > exists. Is this correct? What are the truth values of ints in D? > Surely must 0 =3D false and 1 =3D true? > > //Adam It was already reported and Walter said he was going to fix it in the next release. -- Carlos Santander Bernal |
May 18, 2008 std.file.exists always returns 0 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Carlos Santander | Sorry to revisit this thread, but for me std.file.exists(name) _always_ returns false. Whether the file exists or not. Same with directories. I am using digitalmars D v 1.028 under Windows XP. |
May 18, 2008 Re: std.file.exists always returns 0 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Golodh | 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. |
May 18, 2008 Re: std.file.exists always returns 0 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Golodh | 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. |
Copyright © 1999-2021 by the D Language Foundation