Feature or enhancement
Proposal:
As a pathlib user, I desire methods that retrieve the file mode, size, access time and modify time.
We can implement these as methods of Path.info.
def mode(self, *, follow_symlinks: bool = True) -> int: ...
def size(self, *, follow_symlinks: bool = True) -> int: ...
def access_time(self, *, follow_symlinks: bool = True) -> datetime: ...
def modify_time(self, *, follow_symlinks: bool = True) -> datetime: ...
Has this already been discussed elsewhere?
I have already discussed this feature proposal on Discourse
Links to previous discussion of this feature:
https://discuss.python.org/t/expose-file-size-mode-etc-from-pathlib-path-info/103828
Linked PRs
Feature or enhancement
Proposal:
As a pathlib user, I desire methods that retrieve the file mode, size, access time and modify time.
We can implement these as methods of
Path.info.Has this already been discussed elsewhere?
I have already discussed this feature proposal on Discourse
Links to previous discussion of this feature:
https://discuss.python.org/t/expose-file-size-mode-etc-from-pathlib-path-info/103828
Linked PRs
pathlib.Path.infofor new methods #139175pathlib.Path.info.mode()#139183pathlib.Path.info.stat()#139279pathlib.Path.infofor new methods (part 2) #140155