help!
Benji York
benji at benjiyork.com
Fri Jun 24 08:26:50 EDT 2005
Eser Çetinkaya wrote:
> What can change an acess time of a path different from modification?
> Is there any mistakes in the implementation or am i missing some points?
When a file is read it is accessed but not modified:
>>> import os.path
>>> os.path.getmtime('a_file')
1119615705
>>> os.path.getatime('a_file')
1119615705
>>> os.system('cat a_file')
0
>>> os.path.getmtime('a_file')
1119615705
>>> os.path.getatime('a_file')
1119615758
--
Benji York
More information about the Python-list
mailing list