mirror of
https://github.com/python/cpython.git
synced 2025-10-12 01:43:12 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue