Skip to content

Instantly share code, notes, and snippets.

@zhouqiang-cl
Last active December 22, 2016 04:08
Show Gist options
  • Save zhouqiang-cl/5c4c8dd37c2db74853875773cdcd4999 to your computer and use it in GitHub Desktop.
Save zhouqiang-cl/5c4c8dd37c2db74853875773cdcd4999 to your computer and use it in GitHub Desktop.
common lisp 的路径测试函数 PROBE-FILE
语法
probe-file pathspec => truename
参数和值
pathspec --- 路径指示符
truename --- 真实路径或者 nil
描述
probe-file 测试 pathspec 是否存在, 如果这个路径不存在, 则返回 nil.
反之返回 pathspec 的真实路径
代码
* (probe-file "workspace")
#P"/Users/zhouqiang/workspace/"
补充
路径不能用正则表达式
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment