commit | 162bd855a631ed66f83ff3ed76ae1533de033298 | [log] [tgz] |
---|---|---|
author | Fred Drake <fdrake@acm.org> | Sat Jul 01 06:36:51 2000 +0000 |
committer | Fred Drake <fdrake@acm.org> | Sat Jul 01 06:36:51 2000 +0000 |
tree | 4e805dbf10d96efab6244175f67d4c03ee4dcbc1 | |
parent | d95f4e1a0dedd705519400073981c82569d95ec5 [diff] [blame] |
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.
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 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?