如何判断符号链接是否存在
#4502
Replies: 1 comment
-
os.islink or os.isfile |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
xmake的 exits 是会一直追溯符号链接的
比如我现在的符号链接
a -> /bin/b
,exits(a)
就会判断/bin/b
是否存在。/bin.b
文件不存在, a就指向了一个非法的的地址,exits(a)
就会返回假。但是怎么检测a是否存在呢Beta Was this translation helpful? Give feedback.
All reactions