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

fix windows file access handling #173

Merged
merged 2 commits into from
Apr 2, 2024
Merged

fix windows file access handling #173

merged 2 commits into from
Apr 2, 2024

Conversation

nhanus
Copy link
Contributor

@nhanus nhanus commented Mar 14, 2024

On Windows, you cannot delete a file that is in use. With defer, the file is only closed after the function is executed. The fix ensures that the file is closed before deletion and otherwise closes the file with defer after the function, without throwing an error, when it is closed.
fixed #140 too

@nvthongswansea
Copy link
Member

@nhanus Thank you for your contribution.

@nvthongswansea
Copy link
Member

LGTM. Thank you!

@nvthongswansea nvthongswansea merged commit f5a7195 into gridscale:master Apr 2, 2024
1 check 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.

Error while proxying request: getting credentials: exec: executable gscloud.exe failed with exit code 1
2 participants