reply>> my first newbie question
Tomastiq <[email protected]>
| Newsgroups | gmane.comp.web.skunkweb |
|---|---|
| Message-ID | <[email protected]> |
> Attached is a function that will return a sequence of indices into > os.fstat's return tuple that should be acceptable for use. Let me know > if this helps, or if I'm just embarrassing myself. Thanks Adam, but 2 notes: 1. Under cygwin it returns an empty tuple... Under *nix, I don't know yet Under win it's ok, I get back ST_MTIME (but it doesn't matter I was just curious) 2. I'm a lazy coder, so my solution is something similar like this: stat1=os.stat(<path_changed>) filetime1=max(tmp_stat[ST_MTIME],tmp_stat[ST_CTIME]) stat2=os.stat(<path_cache>) filetime2=max(tmp_stat[ST_MTIME],tmp_stat[ST_CTIME]) and compare these times. But - thank goodness - the maintainer of skunkWeb is not me, so... :) thx.toma ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/