So I have been trying to rename a few thousand folders based on a CSV (Old name, Newname)
I have tried the solution here (Setting up an automator workflow with a command script) but found that it does not do a great deal when it comes to folder/directory names and all the guides/documentation is around file names and not folder. Any suggestions would be much appreciated
Describe exactly what you tried.
Post your code and your data files.
Describe what you expected to happen.
Describe what actually happened, and how that differs from what you expected.
The other thread you linked isn't specific to files. If the lines in the CSV file have names that refer to folders, then folders will be renamed. You will, of course, need to give the folder names properly. If that's the problem, i.e. you can't figure out how to give the folder names properly, then you'll have to show us what you did (i.e. post the files as noted in 1st paragraph).
I'll also point out that the commands in the Run Shell Script step may need to be changed from what the other thread shows in its post #1. Again, we need to see exactly what you tried in order to determine what it should be.