I am quire sure, this is something very common. I want to download files from a https-server and want to keep the original (changed) date. So it should not show me the date the one which is after downloaded. Here I am using this way.
        filename = file.text
            file = session.get(url, verify=False) 
            if file.endswith('arg'):
                    file = open('C:/RD/M/' + filename, 'wb+')
                    file.write(file.content)
                    file.close()
            else:
            'do something'
Is there any way to add something after file.write(file.content)?
Thanks for info in advance