Fix bug #345 reported by David Bolen <db3l@fitlinxx.com>:
getatime() returned the mtime instead of the atime. Similar to an old bug in posixpath.py.
This commit is contained in:
parent
d95f4e1a0d
commit
162bd855a6
@ -183,7 +183,7 @@ def getmtime(filename):
|
|||||||
def getatime(filename):
|
def getatime(filename):
|
||||||
"""Return the last access time of a file, reported by os.stat()"""
|
"""Return the last access time of a file, reported by os.stat()"""
|
||||||
st = os.stat(filename)
|
st = os.stat(filename)
|
||||||
return st[stat.ST_MTIME]
|
return st[stat.ST_ATIME]
|
||||||
|
|
||||||
|
|
||||||
# Is a path a symbolic link?
|
# Is a path a symbolic link?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user