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: John Cowan
Subject: Re: [Chicken-users] file-exists? on Windows
Date: Mon, 14 May 2007 14:28:38 -0400
User-agent: Mutt/1.5.13 (2006-08-11)

Mario Domenech Goulart scripsit:

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

Ah.  No.  The Win32 kernel does *not* ignore trailing backslashes the
way the Unix kernel ignores trailing slashes -- instead, it returns
file-not-found errors.

Note also that the root directory of a Win32 volume does not contain
"." or ".." files (Cygwin fakes them), so it is not even fully reliable
to ask if "." exists.

-- 
By Elbereth and Luthien the Fair, you shall     address@hidden
have neither the Ring nor me!  --Frodo          http://www.ccil.org/~cowan




reply via email to

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