         else if cutPaths
           # Only move the target if the cut target doesn't exists and if the newPath
           # is not within the initial path
-          unless fs.existsSync(newPath) || !!newPath.match(new RegExp("^#{initialPath}"))
+          unless fs.existsSync(newPath) or !!newPath.match(new RegExp("^#{initialPath}"))
             fs.moveSync(initialPath, newPath)
 
   add: (isCreatingFile) ->

  copySelectedEntry: ->
    if @hasFocus()
      entry = @selectedEntry()
      return unless entry isnt root
      oldPath = entry.getPath()
    else
      oldPath = @getActivePath()

  # Returns `copyPath`.
  copySelectedEntries: ->
    selectedPaths = @selectedPaths()
    return unless selectedPaths and selectedPaths.length > 0
    # save to localStorage so we can paste across multiple open apps
    LocalStorage.removeItem('tree-view:cutPath')
    LocalStorage['tree-view:copyPath'] = JSON.stringify(selectedPaths)
