Skip to content

[Windows] Use GetFileSizeEx instead of GetFileSize#152383

Open
thexai wants to merge 1 commit into
python:mainfrom
thexai:windows-getfilesizeex
Open

[Windows] Use GetFileSizeEx instead of GetFileSize#152383
thexai wants to merge 1 commit into
python:mainfrom
thexai:windows-getfilesizeex

Conversation

@thexai

@thexai thexai commented Jun 27, 2026

Copy link
Copy Markdown

GetFileSizeEx is available in all supported Windows versions and has the advantage is also present in UWP, then allows build also in UWP with the same common code.

It also simplifies error checking and makes handling files larger than 4GB easier.

The ultimate goal is to upstream some of Kodi patches required to build Python for Xbox... This is just the first step.

GetFileSizeEx is available in all supported Windows versions and has the
advantage is also present in UWP, then allows build also in UWP with
the same common code.

It also simplifies error checking and makes handling files larger
than 4GB easier.
@bedevere-app

bedevere-app Bot commented Jun 27, 2026

Copy link
Copy Markdown

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@python-cla-bot

python-cla-bot Bot commented Jun 27, 2026

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

CLA signed

@thexai

thexai commented Jun 27, 2026

Copy link
Copy Markdown
Author

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

This change is transparent: users won't notice anything different.

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.

1 participant