[ python-Bugs-878581 ] I would like an easy way to get to file creation date

SourceForge.net noreply at sourceforge.net
Fri Jan 16 17:52:58 EST 2004


Bugs item #878581, was opened at 2004-01-16 14:52
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=878581&group_id=5470

Category: Macintosh
Group: Feature Request
Status: Open
Resolution: None
Priority: 5
Submitted By: Russell Owen (reowen)
Assigned to: Jack Jansen (jackjansen)
Summary: I would like an easy way to get to file creation date

Initial Comment:
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

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=878581&group_id=5470



More information about the Python-bugs-list mailing list