Skip to content

[Storage.save_as] do not clobber non-regular files#28

Merged
arvidj merged 1 commit intoahrefs:masterfrom
arvidj:aj/inf-320-no-clobber-null
Apr 27, 2026
Merged

[Storage.save_as] do not clobber non-regular files#28
arvidj merged 1 commit intoahrefs:masterfrom
arvidj:aj/inf-320-no-clobber-null

Conversation

@arvidj
Copy link
Copy Markdown
Contributor

@arvidj arvidj commented Apr 27, 2026

Storage.save_as checks whether the target file is regular before attempting the "write to temp, rename temp to file" procedure. If regular, just write directly to the file.

@arvidj arvidj marked this pull request as ready for review April 27, 2026 07:47
@arvidj arvidj force-pushed the aj/inf-320-no-clobber-null branch 2 times, most recently from ba88948 to d7e8001 Compare April 27, 2026 09:34
@arvidj arvidj force-pushed the aj/inf-320-no-clobber-null branch from d7e8001 to 32f693f Compare April 27, 2026 09:49
@arvidj arvidj merged commit 98d562b into ahrefs:master Apr 27, 2026
3 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.

1 participant