乐筑天下

搜索
欢迎各位开发者和用户入驻本平台 尊重版权,从我做起,拒绝盗版,拒绝倒卖 签到、发布资源、邀请好友注册,可以获得银币 请注意保管好自己的密码,避免账户资金被盗
查看: 94|回复: 3

[编程交流] Recursive vl-directory-files w

[复制链接]

77

主题

298

帖子

232

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
394
发表于 2022-7-5 18:09:44 | 显示全部楼层 |阅读模式
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.
回复

使用道具 举报

114

主题

1万

帖子

1万

银币

中流砥柱

Rank: 25

铜币
543
发表于 2022-7-5 18:48:47 | 显示全部楼层
  1. (mapcar 'vl-filename-base (LM:directoryfiles "C:\\YourDirectoryHere" nil t))
回复

使用道具 举报

77

主题

298

帖子

232

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
394
发表于 2022-7-5 19:08:20 | 显示全部楼层
Thanks a lot Lee.
 
Mapcar is exactly what I have been looking for.
回复

使用道具 举报

114

主题

1万

帖子

1万

银币

中流砥柱

Rank: 25

铜币
543
发表于 2022-7-5 19:20:02 | 显示全部楼层
You're most welcome!
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

QQ|关于我们|小黑屋|乐筑天下 繁体中文

GMT+8, 2025-3-12 19:46 , Processed in 0.356345 second(s), 60 queries .

© 2020-2025 乐筑天下

联系客服 关注微信 帮助中心 下载APP 返回顶部 返回列表