    # File lib/chef/provider/link.rb, line 40
          def load_current_resource
            @current_resource = Chef::Resource::Link.new(@new_resource.name)
            @current_resource.target_file(@new_resource.target_file)
            @current_resource.link_type(@new_resource.link_type)
            if @new_resource.link_type == :symbolic
              if ::File.exists?(@current_resource.target_file) && ::File.symlink?(@current_resource.target_file)
                @current_resource.to(
                  ::File.expand_path(::File.readlink(@current_resource.target_file))
                )
                cstats = ::File.lstat(@current_resource.target_file)
                @current_resource.owner(cstats.uid)
                @current_resource.group(cstats.gid)
              else
                @current_resource.to("")
              end
            elsif @new_resource.link_type == :hard
              if ::File.exists?(@current_resource.target_file) && ::File.exists?(@new_resource.to)
                if ::File.stat(@current_resource.target_file).ino == ::File.stat(@new_resource.to).ino
                  @current_resource.to(@new_resource.to)
                else
                  @current_resource.to("")
                end
              else
                @current_resource.to("")
              end
            end
            @current_resource
          end