in reply to rename and create directories
... but note that this method does not work if your path is specified using forward-slash ("/") as the pathstep delimiter.