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

Pre-Existing output file is not truncated when overwritten #255

Closed
flemminglau opened this issue Aug 11, 2022 · 2 comments · Fixed by #315
Closed

Pre-Existing output file is not truncated when overwritten #255

flemminglau opened this issue Aug 11, 2022 · 2 comments · Fixed by #315

Comments

@flemminglau
Copy link

In a merge operation in case the output file already exists and is thereby overwritten the previous content is not first truncated.

The result is that in case the new file content is shorter than the old file content the remaining part of the old file is left behind at the end of the new file.

The expectation would be that an existing output file is completely removed when overwritten.

@flemminglau flemminglau changed the title Existing output file is not truncated when overwritten Pre-Existing output file is not truncated when overwritten Aug 11, 2022
@Andrew-Russell-fingo
Copy link

Aha, that is why I am seeing this problem with corrupted json files. thanks. easily fixed in my use-case.

@Serraniel
Copy link
Contributor

Nice to see there already is a fix in the pipeline. We have run into the same issue :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants