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

Delete temporary file on close #636

Merged

Conversation

ivanwick
Copy link

A temp file is created when reading an HdfFile from an InputStream. Delete the temp file when the HdfFile is closed, or at application exit if the HdfFile was never closed.

Fixes #262

@jamesmudd
Copy link
Owner

Thanks for this PR. Looks like the tests are failing but I think for an unrelated reason... I'm happy to have a look at this issue and review the PR, but probably won't be for a few days. Or feel free to have a look if you want to fixup the tests.

@ivanwick ivanwick force-pushed the issue-262-delete-temp-file-on-close branch from 060a71b to c314b27 Compare October 18, 2024 08:41
A temp file is created when reading an HdfFile from an InputStream.
Delete the temp file when the HdfFile is closed, or at application exit
if the HdfFile was never closed.

Fixes jamesmudd#262
@ivanwick ivanwick force-pushed the issue-262-delete-temp-file-on-close branch from c314b27 to 337b831 Compare October 18, 2024 09:02
@ivanwick
Copy link
Author

There were a couple of checkstyle violations that are fixed in the latest push by not using the '.*' form of import, and adding the standard header to a new file.

@jamesmudd jamesmudd merged commit 7718932 into jamesmudd:master Oct 18, 2024
20 of 21 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.

Cleanup temp files when file is closed
2 participants