How to check if symlink can be created on a path?
0
votes
1
answer
608
views
>**Context:**
> A ubuntu Virtualbox VM having shared folders from a Windows host. Provisioner: chef-solo
Assuming there is a path
/tmp/shared_data
and I am attempting to created a symlink on it like
ln -s /var/www /tmp/shared_data/web_root
It fails saying protocol error
> Begin output of "bash" "/tmp/chef-script20161020-6826-kore5t" ----
>
==> dev: STDOUT:
==> dev: STDERR: ln: failed to create symbolic link ‘/tmp/shared_data/web_root’: Protocol error
==> dev: ---- End output of "bash" "/tmp/chef-script20161020-6826-kore5t" ----
==> dev: Ran "bash" "/tmp/chef-script20161020-6826-kore5t" returned 1
I would imagine this is because since the path I am attempting to make a symlink on is the windows FS and does not support it.
So is there a way I can detect if symlink can be created in a path before hand before I attempt it and thus breaking my build.
Asked by Starx
(187 rep)
Oct 21, 2016, 08:18 AM
Last activity: Oct 21, 2016, 09:08 AM
Last activity: Oct 21, 2016, 09:08 AM