import os import time def change_file_metadata(path, access_time, modification_time): os.utime(path, (access_time, modification_time))