copy with new time stamp - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: copy with new time stamp (/thread-25413.html) |
copy with new time stamp - leveex - Mar-29-2020 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... :) |