From: Fred Drake Date: Sat, 1 Jul 2000 06:36:51 +0000 (+0000) Subject: Fix bug #345 reported by David Bolen : X-Git-Tag: v2.0b1~1145 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=162bd855a631ed66f83ff3ed76ae1533de033298;p=python Fix bug #345 reported by David Bolen : getatime() returned the mtime instead of the atime. Similar to an old bug in posixpath.py. --- diff --git a/Lib/ntpath.py b/Lib/ntpath.py index 51e60a2edd..23b7ce3d4a 100644 --- a/Lib/ntpath.py +++ b/Lib/ntpath.py @@ -183,7 +183,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?