I'm writing a script that processes files in directories, but I want the directories' timestamps to remain the same. So I want to get the timestamp before the operation, then set in back after.
Getting the timestamp is easy enough (os.path.getmtime()
), but I can't seem to find an equivalent set
method.
Any suggestion?