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 09:25:52 -0700


On May 11, 2007, at 12:18 PM, Mario Domenech Goulart wrote:

Hi folks,

Sorry for the maybe stupid question: is the following expression
supposed to return #f on Windows?

  (file-exists? ".\\")

(file-exists? (current-directory)) returns the path to the current
directory.

Under Unix[-like] systems, (file-exists? "./") returns the path to the
current directory.

Version 2.614 - macosx-unix-gnu-ppc - [ libffi dload ptables extraslot applyhook ]
(c)2000-2007 Felix L. Winkelmann
; loading ./.csirc ...
#;1> (file-exists? "./")
"./"

The implementation (##sys#expand-home-path in library.scm) only expands a leading tilde, '~', or environment variable reference, '$FOO'. There isn't any special recognition of the current directory 'directory'.


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

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


Best wishes,
Mario



_______________________________________________
Chicken-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/chicken-users





reply via email to

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