             </FileTypeSelector>
         </div>
 
+    render_not_public_error : ->
+        if @props.redux.getStore('account').is_logged_in()
+            <ErrorDisplay title="Directory is not public" error={"You are trying to access a non public project that you are not a collaborator on. You need to ask a collaborator of the project to add you."} />
+        else
+            <div>
+                <ErrorDisplay title="Directory is not public" error={"You are not logged in. If you are collaborator on this project you need to log in first. This project is not public."} />
+                <AccountPage />
+            </div>
+
     render : ->
         <Row style={textAlign:'left', color:'#888', marginTop:'20px', wordWrap:'break-word'} >
             <Col sm=2>
             </Col>
             <Col sm=8>
                 <span style={fontSize:'20px'}>
-                    No Files Found
+                    {if @props.public_view then @render_not_public_error() else "No Files Found"}
                 </span>
                 <hr/>
                 {@render_create_button() if not @props.public_view}

                style   = {error_style}
                onClose = {=>@props.actions.setState(error:'')} />

    render_not_public_error : ->
        if @props.redux.getStore('account').is_logged_in()
            <ErrorDisplay title="Directory is not public" error={"You are trying to access a non public project that you are not a collaborator on. You need to ask a collaborator of the project to add you."} />
        else
            <div>
                <ErrorDisplay title="Directory is not public" error={"You are not logged in. If you are collaborator on this project you need to log in first. This project is not public."} />
                <AccountPageRedux />
            </div>

    render_file_listing: (listing, file_map, error, project_state, public_view) ->
        if project_state? and project_state not in ['running', 'saving']
            return @render_project_state(project_state)

                    else
                        e = <ErrorDisplay title="Directory listing error" error={error} />
            return <div>
                {e}
                <br />
                <Button onClick={=>@props.actions.set_directory_files(@props.current_path, @props.sort_by_time, @props.show_hidden)}>
                    <Icon name='refresh'/> Try again to get directory listing
