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

Atomic directory writes? #138

Closed
foolip opened this issue Nov 20, 2019 · 2 comments
Closed

Atomic directory writes? #138

foolip opened this issue Nov 20, 2019 · 2 comments
Milestone

Comments

@foolip
Copy link
Member

foolip commented Nov 20, 2019

FileSystemWriter provides for atomic file writes, but what about updating a whole directory atomically? Is this important?

@mkruisselbrink
Copy link
Contributor

I'd be interested to hear about use cases for this. If we bring back a rename method for directories (#64/#65), and that rename is actually atomic in overwriting any possible existing directory it seems like that would fulfill most such use cases?

That would of course require having actual access to the parent of the directory you want to atomically update (to create a temporary sibling directory and later atomically replace it), so I can see how there might be cases where we'd still need more explicit support...

@mkruisselbrink mkruisselbrink added this to the V2 milestone Apr 9, 2020
@dslee414
Copy link
Collaborator

I suppose the "directory write" here means move(), which is being addressed by whatwg/fs#10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants