Commit 6d47b84c authored by Robert P. Goldman's avatar Robert P. Goldman

More work on DIRECTORY-FILES.

Use clisp-specific function in DIRECTORY-EXISTS-P implementation.
Use lower-cost DIRECTORY-PATHNAME-P instead of DIRECTORY-EXISTS-P in
DIRECTORY-FILES.
parent c2baa6fa
......@@ -144,7 +144,11 @@ or the original (parsed) pathname if it is false (the default)."
"Is X the name of a directory that exists on the filesystem?"
#+allegro
(excl:probe-directory x)
#-allegro
#+clisp
(handler-case (ext:probe-directory x)
(sys::simple-file-error ()
nil))
#-(or allegro clisp)
(let ((p (probe-file* x :truename t)))
(and (directory-pathname-p p) p)))
......@@ -211,7 +215,7 @@ permits this."
#+clisp
(when (equal :wild (pathname-type pattern))
(ignore-errors (directory* (make-pathname :type nil :defaults pat)))))))
(remove-if 'directory-exists-p
(remove-if 'directory-pathname-p
(filter-logical-directory-results
directory entries
#'(lambda (f)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment