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

testing for a directory in clisp



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