diff options
author | Fred Drake <fdrake@acm.org> | 2000-07-01 06:36:51 +0000 |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2000-07-01 06:36:51 +0000 |
commit | 58dd43c3d23a91d542318eb47981da08a43ce703 (patch) | |
tree | 72f9122c5f4b3371dca07ba21489ef5c934b841f /Lib/ntpath.py | |
parent | a5e634b4832ef239d3bd73804fb441934a543859 (diff) | |
download | cpython-58dd43c3d23a91d542318eb47981da08a43ce703.tar.gz |
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 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? |