    # File lib/chef/provider/link.rb, line 46
          def load_current_resource
            @current_resource = Chef::Resource::Link.new(@new_resource.name)
            @current_resource.target_file(@new_resource.target_file)
            if file_class.symlink?(@current_resource.target_file)
              @current_resource.link_type(:symbolic)
              @current_resource.to(
                canonicalize(file_class.readlink(@current_resource.target_file))
              )
            else
              @current_resource.link_type(:hard)
              if ::File.exists?(@current_resource.target_file)
                if ::File.exists?(@new_resource.to) &&
                   file_class.stat(@current_resource.target_file).ino ==
                   file_class.stat(@new_resource.to).ino
                  @current_resource.to(canonicalize(@new_resource.to))
                else
                  @current_resource.to("")
                end
              end
            end
            ScanAccessControl.new(@new_resource, @current_resource).set_all!
            @current_resource
          end