         recentFolders = ["[#{uid}]/"]
     @expandFolders recentFolders
 
+
   uploadTo: (path)->
+
     {uploader, uploaderPlaceholder} = @getDelegate()
     uploader.setPath path
     uploaderPlaceholder.show()

      if path is folderPath then -1 else 0
    @appStorage.setValue 'recentFolders', recentFolders, callback

  expandFolder:(folderPath, callback=noop)->
    return  unless folderPath
    for own path, node of @treeController.nodes
      return @treeController.expandFolder node, callback  if path is folderPath
    callback {message:"Folder not exists: #{folderPath}"}

  # FIXME THIS ~GG getPathHiearchy needs to be fixed for machine.uid
  expandFolders: (paths, callback=noop)->
    if typeof paths is 'string'
      paths = FSHelper.getPathHierarchy paths
    path = paths.pop()



  setRecentFile:({path})->

    recentFiles = @appStorage.getValue('recentFiles')
    recentFiles = []  unless Array.isArray recentFiles

