Skip to content
Prev 61719 / 63421 Next

dir.exists returns FALSE on Symlink directory

? Mon, 26 Jun 2023 10:26:07 -0400
Dipterix Wang <dipterix.wang at gmail.com> ?????:
It seems to work, at least on GNU/Linux:

# (on this system, /var/lock is a symbolic link pointing to /run/lock/)
system('ls -l /var/lock')
# lrwxrwxrwx 1 root root <...> /var/lock -> /run/lock
dir.exists('/var/lock')
# [1] TRUE
Which operating system? Judging by your User-Agent, it must be some
version of macOS. Can you provide the output of `ls -l` on the symbolic
link?