You need to use the copy function in shutil, like this:
shutil.copy(the directory you want to copy, the directory you want to copy it into, *, follow_symlinks=True
What you ould do it delete all the directories apart from the one you want like this:
import os
file = 'the directory name'
# File location
location = "C:/Python/PythonTest/" #as an example put your own location for yuor file
path = os.path.join(location, file)
# Remove the file
os.remove(path)
perhaps run a for loop to say it not a cron file then delete?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…