libraries/chef_artifact.rb
# Returns true if the given file is a symlink.
# 
# @param  path [String] the path to the file to test
# 
# @return [Boolean]
Returns true if the given file is a symlink.
Returns true if the given file is a symlink .
def symlink?(path)
        if windows?
          require 'chef/win32/file'
          return Chef::ReservedNames::Win32::File.symlink?(path)
        end
        ::File.symlink?(path)        
      end
def symlink? ( path ) if windows? require 'chef/win32/file' return Chef :: ReservedNames :: Win32 :: File . symlink? ( path ) end :: File . symlink? ( path ) end
Returns true if the given file is a symlink.
Returns true if the given file is a symlink .
None
Boolean
path
the path to the file to test
the path to the file to test