chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] file-exists? on Windows


From: Kon Lovett
Subject: Re: [Chicken-users] file-exists? on Windows
Date: Mon, 14 May 2007 10:34:06 -0700


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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]