On May 14, 2007, at 9:48 AM, Mario Domenech Goulart wrote:


<snip>
Shouldn't (file-exists? ".\\") return the path to the current
directory?

Not according to the documentation. But this can be changed.

I'm not sure I understand what you mean.  The documentation says:

,----[procedure] (file-exists? STRING)
| Returns STRING if a file with the given pathname exists, or #f
| otherwise.
`----

Isn't (file-exists? ".\\") supposed to return ".\\" on windows?

Yes, sorry I misunderstood.

It appears that '_stat' on Windows fails for the above. However, '(file-exists? ".")' returns "." as expected. BTW, '(file-exists? "..\ \")' also fails while '(file-exists? "..")' succeeds.

Please create a TRAC ticket. Appears that the problem is a null path after the directory separator, since '(file-exists? ".\\csc- tst.scm")' works.


Best wishes,
Mario



_______________________________________________
Chicken-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to