That's why there is an alternative way to do so.
After over 11 hours of unsuccessful bug fixing, I have decided to change the method for renaming directories.
How to rename directories:
1. Scroll down to the input at the bottom, where you can enter the new name for your folder.
2. Press the "okay" button to download the renamed folder.
3. Go to the Upload ZIP page to upload your new folder to the desired location.
4. Ensure you delete the old folder to replace it with the new folder.
Example:
If a user wants to rename a folder called "sky":
The folder:
sky/blue/sky.css
He wants to rename the folder "sky" to "sky2". After entering "sky2" in the input at the bottom and pressing the "okay" button, the zip file will be downloaded. This is what the zip file contains:
sky2/blue/sky.css
Next, the user goes to the Upload ZIP page in the Hostium Management Panel and uploads the file to the desired directory. Finally, they delete the old directory named "sky," leaving only the folder named "sky2" and successfully replacing the old folder.
Please enter the new name for the folder: