In a directory containing files and directories,
(directory (make-pathname :directory '(:relative :wild)))
lists only the directories, in CCL, SBCL, CLISP, ECL, but in ABCL (1.3.2) produces this error:
#<THREAD "interpreter" {71225B71}>: Debugger invoked on condition of type TYPE-ERROR The value NIL is not of type (OR PATHNAME STRING FILE-STREAM SYSTEM:JAR-STREAM SYSTEM:URL-STREAM).
This is triggered by the existence of a file in OSX named ./.android/adbkey , or in general by the existence of:
$ mkdir .d1 $ touch .d1/f1
[CMUCL seems wrong. It lists contents of subdirectories of current directory (but not their subdirectories).]
Vibhu