Create a bad symbolic link (with missing target) using MkLink command (needs Administrator access, or needs the Local Policy to be set accordingly).
Use glob()
with alllinks argument set to true, to list the new link
:!If Not Exist BadLink (MkLink BadLink NoSuchFileOrDirectory) :echo 'BadLink'->glob(v:false, v:true, v:true)
If I use readdir()
on the directory containing the symlink, then I can list the bad link.
glob()
should return bad symlinks if alllinks argument is v:true
9.1 (patches 1-445)
Windows GUI (gvim.exe)
No response
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
Closed #14933 as completed via 23c5ebe.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.