 
   updateRoot: ->
     @root?.remove()
-    if rootDirectory = rootView.project.getRootDirectory()
-      @root = new DirectoryView(directory: rootDirectory, isExpanded: true, project: rootView.project)
+    if rootDirectory = project.getRootDirectory()
+      @root = new DirectoryView(directory: rootDirectory, isExpanded: true, project: project)
       @treeViewList.append(@root)
     else
       @root = null

        @selectActiveFile()

    rootView.on 'root-view:active-path-changed', => @selectActiveFile()
    rootView.project.on 'path-changed', => @updateRoot()
    @observeConfig 'core.hideGitIgnoredFiles', => @updateRoot()

    if @root


    dialog = new Dialog
      prompt: prompt
      path: project.relativize(oldPath)
      select: true
      iconClass: 'move'
      onConfirm: (newPath) =>
        newPath = project.resolve(newPath)
        directoryPath = fs.directory(newPath)
        try
          fs.makeTree(directoryPath) unless fs.exists(directoryPath)
