Name
getatime, getmtime, getsize
Synopsis
getatime(path
) getmtime(path
) getsize(path
)
Each of these functions returns an attribute from the result of
os.stat(
path
)
,
respectively the attributes st_atime
,
st_mtime
, and st_size
. See
Section 10.2.5 later in this chapter
for more information about these attributes.
Get Python in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.