     #     else
     #       @expandFolder @nodes[parentPath], =>
     #         @selectNode @nodes[path]
-    
+
     # file.on "fs.remotefile.created", (oldPath)=>
     #   tc = @treeController
     #   parentNode = tc.nodes[file.parentPath]
-    # 
+    #
     #   if parentNode
     #     if parentNode.expanded
     #       tc.refreshFolder tc.nodes[file.parentPath], ->



  moveFiles:(nodesToBeMoved, targetNodeView, callback)->
    
    targetItem = targetNodeView.getData()
    if targetItem.type is "file"
      targetNodeView = @nodes[targetNodeView.getData().parentPath]
      targetItem = targetNodeView.getData()
    
    stack = []
    nodesToBeMoved.forEach (node)=>
      stack.push (callback) =>

    else
      nodeView.collapse()
      callback? nodeView

  navigateTo:(path, callback)->

    return unless path

    path = path.split('/')
    path.shift()  if path[0] is ''
    path.pop()    if path[path.length-1] is ''
