I am writing a program that moves files based on their creation date however the creation date retrieved from ctime() can sometimes change on windows when files are copied but the content created date seems to stay consistent.Is the a way to retrieve this date in Python as it doesn't change when the file is copied or modified?
Asked
Active
Viewed 662 times
4
-
1Possible duplicate of [How to get file creation & modification date/times in Python?](https://stackoverflow.com/questions/237079/how-to-get-file-creation-modification-date-times-in-python) – Joel Jul 10 '18 at 15:41
-
I'm no looking for modification date but rather the specific contents created date in the details pane of the properties section of a file in windows – Lewis Solarin Jul 10 '18 at 15:46
-
2That's not file-system metadata. It depends on metadata in a particular file type's header, which is made available by shell interfaces. That shifts the problem into COM programming and requiring PyWin32 or comtypes. – Eryk Sun Jul 10 '18 at 15:49