Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
copy with new time stamp
#1
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... :)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Filename stamp script is needed ineuw 11 4,478 Sep-12-2023, 03:05 AM
Last Post: ineuw
  How to map by time stamp and name SriRajesh 0 1,110 Apr-09-2022, 12:49 PM
Last Post: SriRajesh
  extract zip from .msg files and saving according to date stamp of email natjo 3 2,883 Aug-13-2020, 09:35 PM
Last Post: bowlofred
  How to save latest time stamp in a file? redwood 12 7,053 Jul-11-2019, 11:03 AM
Last Post: redwood

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020