Change the `+ newName` to `+ fileEntry.name` in order to work with entries whose name is not changed.