lamensterms 发表于 2022-7-5 18:09:44

Recursive vl-directory-files w

Hi,
 
I'm on the hunt for a recursive alternative to vl-directory-files (that will search subdirectories), that will remove the directory prefix & file extension.
 
I've tried Lee Mac's "Directory Files" routine, but that will only produce a list that includes directory prefix & file extension.
 
http://www.lee-mac.com/getallfiles.html
 
Is anyone aware of such a function?
 
Thanks a lot for any help.

Lee Mac 发表于 2022-7-5 18:48:47

(mapcar 'vl-filename-base (LM:directoryfiles "C:\\YourDirectoryHere" nil t))

lamensterms 发表于 2022-7-5 19:08:20

Thanks a lot Lee.
 
Mapcar is exactly what I have been looking for.

Lee Mac 发表于 2022-7-5 19:20:02

You're most welcome!
页: [1]
查看完整版本: Recursive vl-directory-files w