Im a beginner to python and I need to make a script that renames file names.
My files are in the format Name Surname but I need them in Surname Name
I have files that are like this:
C:/Test/Smith John
C:/Test/Jones Fred
C:/Test/Jack Martin Ben
and I need them like this:
C:/Test/John Smith
C:/Test/Fred Jones
C:/Test/Ben Jack Martin
I have tried multiple things with os.rename but I really cant get it to work.
Thanks for the help in advance.