[issue45009] Get last modified date of Folders and Files using pathlib module

Vedran Čačić report at bugs.python.org
Thu Aug 26 10:30:21 EDT 2021


Vedran Čačić <vedgar at gmail.com> added the comment:

It probably has nothing to do with your bug, but your title is wrong. You are _not_ getting mtime using pathlib (but using os.path instead). That is done like using this approach: https://docs.python.org/3/library/pathlib.html#pathlib.Path.stat

Just to eliminate irrelevant details, could you try _actually_ implement the algorithm using the above, and see if the results differ?

----------
nosy: +veky

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45009>
_______________________________________


More information about the Python-bugs-list mailing list