 
     displayName : 'ProjectFiles-NoFiles'
 
+    create_folder : () ->
+        @props.actions.create_folder(@props.file_search, @props.current_path, (a) => setState(error: a))
+        @props.actions.setState(file_search : '', page_number: 0)
+
     create_file : (ext) ->
         @props.actions.create_file
             name         : @props.file_search

            <Icon name='plus-circle' /> {@button_text()}
        </Button>

    render_file_type_selection : ->
        <div>
            <h4 style={color:"#666"}>Or select a file type</h4>
            <FileTypeSelector create_file={@create_file} create_folder={@create_file} />
        </div>

    render : ->

        else
            @create_file()

    filename_text : ->
        ext = @extension()
        if ext and @props.file_search.slice(-1) isnt '/'
            "#{@props.file_search}.#{ext}"
        else
            "#{@props.file_search}"

    button_text : ->
        if not @props.file_search?.length > 0
            "Create or upload files..."
        else
            "Create #{@filename_text()}"

    render_new_button : ->
        <Button
