             </Button>
         </span>
 
-generate_on_share_click = (name, actions) =>
+generate_on_share_click = (full_path, actions) =>
     (e) =>
         e.preventDefault()
         e.stopPropagation()
         actions.set_all_files_unchecked()
-        actions.set_file_checked(name, true)
+        actions.set_file_checked(full_path, true)
         actions.set_file_action('share')
 
 FileRow = rclass

        e.preventDefault()
        e.stopPropagation()
        @props.actions.download_file
            path : @fullpath()
            log : true

    render_timestamp: ->

        if window.getSelection().toString() == @state.selection_at_last_mouse_down
            foreground = misc.should_open_in_foreground(e)
            @props.actions.open_file
                path       : @full_path()
                foreground : foreground
            if foreground
                @props.actions.set_file_search('')
