 
     handle_click: (e) ->
         if window.getSelection().toString() == @state.selection_at_last_mouse_down
-            path = misc.path_to_file(@props.current_path, @props.name)
-            @props.actions.open_directory(path)
+            @props.actions.open_directory(@full_path())
             @props.actions.set_file_search('')
 
     render_public_directory_info: ->
         if @props.public_data? and @props.is_public
             <PublicButton
                 id       = {@props.name}
-                on_click = {generate_on_share_click(@props.name, @props.actions)}
+                on_click = {generate_on_share_click(@full_path(), @props.actions)}
             />
         else
             <ShareButton
                 id       = {@props.name}
-                on_click = {generate_on_share_click(@props.name, @props.actions)}
+                on_click = {generate_on_share_click(@full_path(), @props.actions)}
             />
+
+    full_path: ->
+        misc.path_to_file(@props.current_path, @props.name)
 
     render_time: ->
         if @props.time?

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

    render_timestamp: ->

        if @props.public_data? and @props.is_public
            <PublicButton
                id       = {@props.name}
                on_click = {generate_on_share_click(@full_path(), @props.actions)}
            />
        else
            <ShareButton
                id       = {@props.name}
                on_click = {generate_on_share_click(@full_path(), @props.actions)}
            />

    full_path: ->
        misc.path_to_file(@props.current_path, @props.name)

    handle_mouse_down: (e) ->
