   # extensions, otherwise it's undefined.
   resolveExtension: (pathToResolve, extensions) ->
     for extension in extensions
-      if extension == ""
+      if extension is ""
         return fsPlus.absolute(pathToResolve) if fsPlus.existsSync(pathToResolve)
       else
         pathWithExtension = pathToResolve + "." + extension.replace(/^\./, "")

      throw error

    targetParentPath = path.dirname(target)
    if !fs.existsSync(targetParentPath)
      fsPlus.makeTreeSync(targetParentPath)

    fs.renameSync(source, target)

  # Public: Removes the file or directory at the given path synchronously.

      return

    fs.stat target, (newErr, newStat) ->
      if newErr and newErr.code is 'ENOENT'
        callback(undefined, true) # new path does not exist so it is valid
        return

