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

Allow delete of file from OPFS while still open via access handle #339

Open
alshamma opened this issue Oct 20, 2021 · 2 comments
Open

Allow delete of file from OPFS while still open via access handle #339

alshamma opened this issue Oct 20, 2021 · 2 comments

Comments

@alshamma
Copy link

Web apps may create temporary files that are meant to be deleted when they are implicitly closed. That is, when a tab closes, these temporary files should not be persisted.

Perhaps the behavior should be similar to the posix unlink function.

@mkruisselbrink
Copy link
Contributor

I think support for temporary files in some manner might make sense, yes (see also my reply to #340). Not sure that allowing removing of a file while it is open/locked is the way I'd approach this. I'd rather just not have the file exists in a directory to begin with, which seems like it should address the same use case?

And storage buckets with a session scoped lifetime might also help here (although we'd have to define what session scoped actually means, i.e. does it delete data on tab closure, or on browser closure, or something else...)

@a-sully
Copy link
Collaborator

a-sully commented Jan 13, 2023

A related issue was just filed on the Storage Buckets spec: WICG/storage-buckets#44

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

3 participants