gh-85264: Optionally request actual filesize via 'os.path.getsize' by stephenfin · Pull Request #21088 · python/cpython · GitHub
Skip to content

gh-85264: Optionally request actual filesize via 'os.path.getsize' - #21088

Open
stephenfin wants to merge 2 commits into
python:mainfrom
stephenfin:bpo-41092
Open

stephenfin wants to merge 2 commits into
python:mainfrom
stephenfin:bpo-41092

Conversation

@stephenfin

@stephenfin stephenfin commented Jun 23, 2020

Copy link
Copy Markdown

Provide the ability to get the actual, on-disk size of a file using os.path.getsize. This is helpful when dealing with things like sparse files.

https://bugs.python.org/issue41092

@the-knights-who-say-ni

Copy link
Copy Markdown

Comment thread Doc/library/os.path.rst
Comment thread Lib/genericpath.py Outdated
@bedevere-bot

Copy link
Copy Markdown

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

@csabella

Copy link
Copy Markdown
Contributor

@stephenfin, please make the changes requested. Thank you!

@stephenfin

Copy link
Copy Markdown
Author

So I completely forgot about this and only spotted it while working on #146513. 6 years... 🙈

@stephenfin stephenfin changed the title bpo-41092: Optionally request actual filesize via 'os.path.getsize' gh-85264: Optionally request actual filesize via 'os.path.getsize' Mar 27, 2026
Provide the ability to get the actual, on-disk size of a file using
'os.path.getsize'. This is helpful when dealing with things like sparse
files.

Signed-off-by: Stephen Finucane <stephen@that.guru>
@github-actions

Copy link
Copy Markdown

@github-actions github-actions Bot added the stale Stale PR or inactive for long period of time. label May 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting changes stale Stale PR or inactive for long period of time.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants