Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[generic] use tempfile when saving cookies #5461

Merged
merged 1 commit into from
Apr 13, 2024

Conversation

wlritchi
Copy link
Contributor

If gallery-dl fails to write updated cookies, for example because the disk is full, on some systems it leaves behind an empty file, wiping out the existing cookies. To fix this, write the updated cookies to a temporary file first, then rename over the original cookies file.

avoids wiping the cookies file if the disk is full
@mikf mikf merged commit 7dd79ee into mikf:master Apr 13, 2024
8 of 9 checks passed
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.

2 participants