Remove the `PathBase.stat()` method. Its use of the `os.stat_result` API, with its 10 mandatory fields and low-level types, makes it a poor fit for virtual filesystems. We'll look to add a `PathBase.info` attribute later - see pythonGH-125413.
Closed
srinivasreddy pushed a commit to srinivasreddy/cpython that referenced this pull request
Jan 8, 2025Remove the `PathBase.stat()` method. Its use of the `os.stat_result` API, with its 10 mandatory fields and low-level types, makes it an awkward fit for virtual filesystems. We'll look to add a `PathBase.info` attribute later - see pythonGH-125413.