I am trying to write a python script backing up a folder, and keeping it for x days.
I use
shutil.copytree(source, finaldest)
My problem is, the timestamp from the original files persists, meaning the folders will be deleted if the files within is older than x days. What i want is the timestamp to be the time of backup, regardless of the original creation date