Skip to content

Conversation

@melvinmurvie
Copy link
Contributor

This PR is to make sure opened files are closed immediately (instead of at defer) if we don't need it anymore.

On Windows an error occurs when we try to rename from/to an opened files. Calling os.Rename(old, new) we should make sure to close both old and new files (if new is existed and opened).

Fixes #127

@melvinmurvie melvinmurvie marked this pull request as draft November 7, 2024 09:43
@melvinmurvie melvinmurvie marked this pull request as ready for review November 7, 2024 09:45
Copy link
Owner

@bwplotka bwplotka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks so much for helping!

I gave some suggestions on a bit cleaner approach, but good progress and thanks for approaching this! 💪🏽

@melvinmurvie
Copy link
Contributor Author

Thanks so much for helping!

I gave some suggestions on a bit cleaner approach, but good progress and thanks for approaching this! 💪🏽

@bwplotka Thanks for the suggestions! I've already made the changes, please take a look and let me know if there's anything else need to improve! 🙏🏽

Copy link
Owner

@bwplotka bwplotka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@bwplotka bwplotka merged commit c8f9bec into bwplotka:main Nov 5, 2025
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.

bingo get fails on Windows: bingo.tmp.mod is being used by another process

2 participants