Python Forum

Full Version: copy with new time stamp
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

why does shutil.copyfile as well as os.util copy files and create new timestamp on mac and Linux, but not on windows.
I have created some kind of app that needs to change the file with another one (Image.png with transparet.png) and have to change timestamp as well.
And I have created that on mac and tested on Linux, it's working as it should, but windows is making me a problem because it does not change the modification date.
Am I missing something?

shutil.copy() is the answer for me... if someone else stuck as me... :)