From: Guido van Rossum Date: Thu, 24 Feb 2000 02:26:51 +0000 (+0000) Subject: Mark Favas discovered this: getatime() accidentally returned the MTIME! X-Git-Tag: v1.6a1~363 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9811861e3c31f2cb9d04853460408c4fea3d6f1b;p=python Mark Favas discovered this: getatime() accidentally returned the MTIME! This fixes PR#211. --- diff --git a/Lib/posixpath.py b/Lib/posixpath.py index 090f245eb6..792a9856d5 100644 --- a/Lib/posixpath.py +++ b/Lib/posixpath.py @@ -143,7 +143,7 @@ def getmtime(filename): def getatime(filename): """Return the last access time of a file, reported by os.stat().""" st = os.stat(filename) - return st[stat.ST_MTIME] + return st[stat.ST_ATIME] # Is a path a symbolic link?