I found another solution for renaming a package in the entire project:
- Open a file in the package.
- IntelliJ displays the breadcrumbs of the file, above the opened file.
- On the package you want renamed: Right click > Refactor > Rename.
This renames the package/directory throughout the entire project.