Skip to content

Free disk space on Windows: ask Windows directly instead of PowerShell - #29

Merged
pl0xuee merged 1 commit into
mainfrom
fix/windows-disk-free
Dec 2, 2026
Merged

pl0xuee merged 1 commit into
mainfrom
fix/windows-disk-free

Conversation

@pl0xuee

@pl0xuee pl0xuee commented Dec 2, 2026

Copy link
Copy Markdown
Owner

Starting PowerShell to read free disk space could take longer than its 8-second timeout on a busy machine. When that happened the app showed no free space, and hardware::tests::free_disk_of_a_real_folder failed at random on Windows CI (it failed on Dependabot PRs #23 and #28, which don't touch this code). This calls GetDiskFreeSpaceExW through the windows-sys crate the core already depends on.

🤖 Generated with Claude Code

Starting PowerShell could take longer than its 8 s timeout on a busy machine,
so no free space was shown and the hardware test failed at random on CI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@pl0xuee
pl0xuee merged commit dd88d46 into main Dec 2, 2026
6 checks passed
@pl0xuee
pl0xuee deleted the fix/windows-disk-free branch December 2, 2026 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant