Skip to content

Fix removal of locked libraries on Windows#1741

Merged
deathaxe merged 1 commit intomasterfrom
fix/library-upgrade-failed
Apr 4, 2026
Merged

Fix removal of locked libraries on Windows#1741
deathaxe merged 1 commit intomasterfrom
fix/library-upgrade-failed

Conversation

@deathaxe
Copy link
Copy Markdown
Collaborator

@deathaxe deathaxe commented Apr 4, 2026

This commit moves locked files (e.g. DLLs, pyd) to Data/Trash directory, to defer removal until next restart of ST, while enabling placing new file at the same location upon library upgrade.

Technically, charset_normalizer failed to upgrade with WinError 5 due to a .pyd file in Lib/ directory being locked by Windows OS.

The strategy is already used by delete_directory() function.

This commit moves locked files (e.g. DLLs, pyd) to Data/Trash directory,
to defer removal until next restart of ST, while enabling placing
new file at the same location upon library upgrade.

Technically, charset_normalizer failed to upgrade with WinError 5
due to a .pyd file in Lib/ directory being locked by Windows OS.

The strategy is already used by `delete_directory()` function.
@deathaxe deathaxe merged commit dbac91c into master Apr 4, 2026
8 checks passed
@deathaxe deathaxe deleted the fix/library-upgrade-failed branch April 4, 2026 11:47
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