mcl has, so long as i can remeber, supported implementation-specific keywords to cl:directory - :files, and :directories, to specify whether it should return pathnames of the specified kind. there is also a ccl:directory-pathname-p, which distinguishes pathnames with null, unspecific, or zero-length name and null or unspecific type.
i've never looked inside directory to see how it actually distinguishes pathnames. as its filtering is likely below the "pathname" level, the implementation probably diverges, but the effect is the same. i've found the combination of the two to be sufficient. directory-pathname-p is easy enough to add, but wrapping directory could get either messy or inefficient. On Saturday, Nov 29, 2003, at 11:45 Europe/Berlin, Paolo Amoroso wrote: > > I am looking for a way of recognizing file system > directories. CL:DIRECTORY and UNIX:READ-DIR return both regular files > and directories, but how do I tell them apart? I have done some > APROPOSing around, but there's apparently no exported functionality > for this. > > > Paolo > -- > Why Lisp? http://alu.cliki.net/RtL%20Highlight%20Film >
