Skip to content

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

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

gh-85264: Optionally request actual filesize via 'os.path.getsize'#21088
stephenfin wants to merge 2 commits intopython:mainfrom
stephenfin:bpo-41092

Conversation

@stephenfin
Copy link
Copy Markdown

@stephenfin stephenfin commented Jun 23, 2020

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

Hello, and thanks for your contribution!

I'm a bot set up to make sure that the project can legally accept this contribution by verifying everyone involved has signed the PSF contributor agreement (CLA).

CLA Missing

Our records indicate the following people have not signed the CLA:

@stephenfin

For legal reasons we need all the people listed to sign the CLA before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue.

If you have recently signed the CLA, please wait at least one business day
before our records are updated.

You can check yourself to see if the CLA has been received.

Thanks again for the contribution, we look forward to reviewing it!

@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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants