From 162bd855a631ed66f83ff3ed76ae1533de033298 Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Sat, 1 Jul 2000 06:36:51 +0000 Subject: Fix bug #345 reported by David Bolen : getatime() returned the mtime instead of the atime. Similar to an old bug in posixpath.py. --- Lib/ntpath.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/ntpath.py b/Lib/ntpath.py index 51e60a2..23b7ce3 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? -- cgit v0.12