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

Clean up temporary files #91

Open
machow opened this issue Jun 17, 2024 · 0 comments
Open

Clean up temporary files #91

machow opened this issue Jun 17, 2024 · 0 comments

Comments

@machow
Copy link
Collaborator

machow commented Jun 17, 2024

Currently, htmltools puts files in the folder returned by tempfile.gettempdir, but does not unlink them. If it uses the mechanisms in classes like tempfile.NamedTemporaryFiles or tempfile.TemporaryDirectory, then they can be automatically unliked (e.g. by a context manager)

tmpdir = tempfile.gettempdir()

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

No branches or pull requests

1 participant