Jun-01-2021, 04:42 PM
(This post was last modified: Jun-01-2021, 04:56 PM by Yoriz.
Edit Reason: Formatting
)
(Jun-01-2021, 01:10 PM)Yoriz Wrote: Try usingThanks. Not clear how to use. For example, how can I get last access time to all files, located in 'aaa/bbb/ccc/' ?
https://docs.python.org/3/library/os.html#os.stat Wrote:os.stat(path, *, dir_fd=None, follow_symlinks=True)to get
Get the status of a file or a file descriptor. Perform the equivalent of a stat() system call on the given path. path may be specified as either a string or bytes – directly or indirectly through the PathLike interface – or as an open file descriptor. Return a stat_result object.
https://docs.python.org/3/library/os.htm...t.st_atime Wrote:st_atime
Time of most recent access expressed in seconds.