Are you asking from a programming aspect or from just a standard computer use aspect?
Really we would need to see some of your code to help you out with this if it is from a programming aspect because it is hard to tell what you are actually doing.
But the short answer would be find each instance of a "." or "/" in the folder names and replace them with a " ". Which is pretty standard.
I have followed the examples and writing to / from text files etc , also managed to find correct file sizes of a specified folder but I have no idea where to start with renaming folders, so at the moment there is no code. I am a complete beginner but a very fast learner so any advice would be welcome.
But the short answer would be find each instance of a "." or "/" in the folder names and replace them with a " ". Which is pretty standard.
Yeah that is what I have asked for but I have no idea how to actually write it.