Skip to content

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
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