title: Chef link error when trying to create symlink of two directories
body: <p>I can't seem to get chef to create a symlink between two directories. I want to create a symlink between two different directories. (<code>/var/log/nginx</code> to <code>/data/logs/nginx</code>).</p>
  
  <pre class="lang-rb prettyprint-override"><code>directory node[:nginx][:log_dir] do
    owner 'root'
    mode 00777
    action :create
   end
  
  directory node[:nginx][:integration][:log_dir] do
    owner 'root'
    mode 00777
    action :create
  end
  
  link node[:nginx][:integration][:log_dir] do
    to node[:nginx][:log_dir]
  end
  </code></pre>
  
  <p>I get the following error</p>
  
  <pre><code>Errno::EISDIR
  Is a directory - var/log/nginx
  
  link("var/log/nginx") do
    provider Chef::Provider::Link
    action :create
    retries 0
    retry_delay 2
    guard_interpreter :default
    to "/data/logs/nginx/"
    link_type :symbolic
    target_file "var/log/nginx"
    cookbook_name :nginx_integration
    recipe_name "default"
  end
  </code></pre>