summaryrefslogtreecommitdiff
path: root/Lib/ntpath.py
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-07-01 06:36:51 +0000
committerFred Drake <fdrake@acm.org>2000-07-01 06:36:51 +0000
commit58dd43c3d23a91d542318eb47981da08a43ce703 (patch)
tree72f9122c5f4b3371dca07ba21489ef5c934b841f /Lib/ntpath.py
parenta5e634b4832ef239d3bd73804fb441934a543859 (diff)
downloadcpython-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.py2
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?