How to rename a folder in Swift

Use the moveItem() methof of the FileManager to rename a folder in iOS development

Here I am renaming test-directory to test-directory-new