Aug-10-2020, 04:51 PM
Hey, guys,
Very much a beginner at coding.
I was trying to rename image files by extracting their creation date using the "os.path.getctime(path)" method, but I've run into a snag.
Using Windows...
I copied the files from an external drive to my laptop. In Explorer, the creation dates still display as when the images and video were actually created: 2012
When I use "os.path.getctime(path)" on any one of those files, the creation date returned is the date I copied the files to my laptop (which was yesterday).
Is there a different function (not sure if that's the correct terminology) that I should use to extract the date/time that's the same as what's being displayed in Explorer? The ACTUAL creation date?
Thanks!
John
Very much a beginner at coding.
I was trying to rename image files by extracting their creation date using the "os.path.getctime(path)" method, but I've run into a snag.
Using Windows...
I copied the files from an external drive to my laptop. In Explorer, the creation dates still display as when the images and video were actually created: 2012
When I use "os.path.getctime(path)" on any one of those files, the creation date returned is the date I copied the files to my laptop (which was yesterday).
Is there a different function (not sure if that's the correct terminology) that I should use to extract the date/time that's the same as what's being displayed in Explorer? The ACTUAL creation date?
Thanks!
John