How may I rename folder with scripting functions?

Hello, I am having issues figuring out how to re-name a folder using the scripting functions.

I’ve attempted to use system.tag.move(), however, it created a child folder from the original folder name. Is this intentional or am I using the function incorrectly?

Also, I’ve attempted to use system.tag.getConfiguration, changing the name in the dictionary and applying changes with system.tag.configure. Anyone have any insight on this situation? It is greatly appreciated.

This should do it:
https://docs.inductiveautomation.com/display/DOC80/system.tag.rename

system.tag.rename("[]OldName", "NewName", 'a')

Worked for me

Of course there’s a function called system.tag.rename()… Thank you will try this solution and get back to you.