-
-
Notifications
You must be signed in to change notification settings - Fork 33k
Open
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-pathlibtype-featureA feature request or enhancementA feature request or enhancement
Description
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
adqm, aisk and jbosboom
Metadata
Metadata
Assignees
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-pathlibtype-featureA feature request or enhancementA feature request or enhancement