With Carbon MacPython it is trivial to get to the file creation date; it is one of the fields returned by os.stat. With Framework MacPython this is no longer the case.
I am sure that the interface to the MacOS APIs allow one to do this. I played around some and could see how I could probably get the info, but in what format I had no idea and it was fairly complicated.
If you are willing, it'd be nice to have easier access to this info (and perhaps it exists and I've missed it). I can imagine two possible solutions:
- expand os.stat so the return object includes the extra attribute; this would be convenient, but would make the mac version nonstandard. Of course the windows version could also include this info, leaving unix the "odd man out".
- add a convenience method or function to some existing mac library
Of course it's an interesting question how many users actually need this info. I ended up using it for processing some measurement results (the language used to write the data files was too crude to include a date in the files). Still...it's clear folks to have use for file info, and it's nice if it's readily available. Thanks for your consideration.
-- Russell
|