So I originally had a query relating to moving a pdf map to a separate folder which is named with the pdf name.
Johannes Bierer provided the code below (which works perfectly):
glob os shutil
outDir osmkdirospathjoinoutPath outFolder
outDir1 ospathjoinoutPath outFolder
outFile ospathjoinoutDir1 ospathbasenamefile
My follow up query to this is what should be added to the above code in order that the first 12 characters of the file name are removed when naming the folder?
Wasn't sure whether this should be appended to the original question or not.