[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
testing for a directory in clisp
- To: clisp-list@ma2s2.mathematik.uni-karlsruhe.de
- Subject: testing for a directory in clisp
- From: Heinrich Taube <hkt@cmp-nxt.music.uiuc.edu>
- Date: Mon, 4 Dec 95 09:57:12 -0600
Im porting a large install script to clisp, and I need to be able to check that a user has specified a
directory that really exists. In ACL, GCL and MCL, I do this by:
> (probe-file "/tmp")
#"/tmp"
but this causes an error (!) in clisp. How do I test for a directory?
> (probe-file "/tmp")
*** - NAMESTRING: "/tmp" names a directory, not a file
1. Break> (probe-file (make-pathname :directory "/tmp"))
*** - MAKE-PATHNAME: illegal :DIRECTORY argument "/tmp"
2. Break> (directory "/tmp")
*** - NAMESTRING: "/tmp" names a directory, not a file