Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的文件夹是这样的
c:/bar/ c:/bar/dir1 c:/bar/dir2 c:/bar/00.txt c:/bar/02.txt
我可以列出文件
(directory "c:/bar/*.*") (#P"c:/bar/00.txt" #P"c:/bar/01.txt")
但在列出子目录时遇到问题
(directory "c:/bar/*") NIL (directory "c:/bar/*/") NIL
我做错了什么?
:directories t在 CCL 中使用:
:directories t
(directory "C:/bar/*.*" :directories t)
但是,如果你想编写独立于实现的代码(例如你想共享的库),你可能应该听从 Vsevolod 的建议,并使用像cl-fad.
cl-fad