Rename Folder from script

Hi everyone!!

I´m making an app that have several folders named: 1,2,3,4… I want the user can delete folders, so, if he deletes the folder named 2, the folders 3 and 4 must be renamed 2 and 3.
How can I do that?

Thanks a lot in advance!!

“folder” as in the file system folders on a pc? :face_with_spiral_eyes:

It´s an Android app, folders are in Application.persistentDataPath