diff options
author | Fred Drake <fdrake@acm.org> | 2000-07-01 06:36:51 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2000-07-01 06:36:51 (GMT) |
commit | 162bd855a631ed66f83ff3ed76ae1533de033298 (patch) | |
tree | 4e805dbf10d96efab6244175f67d4c03ee4dcbc1 /Lib/ntpath.py | |
parent | d95f4e1a0dedd705519400073981c82569d95ec5 (diff) | |
download | cpython-162bd855a631ed66f83ff3ed76ae1533de033298.zip cpython-162bd855a631ed66f83ff3ed76ae1533de033298.tar.gz cpython-162bd855a631ed66f83ff3ed76ae1533de033298.tar.bz2 |
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.
Diffstat (limited to 'Lib/ntpath.py')
-rw-r--r-- | Lib/ntpath.py | 2 |
1 files changed, 1 insertions, 1 deletions
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? |