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

Add method to enable deleting a file without having access to its parent directory #214

Open
mkruisselbrink opened this issue Aug 12, 2020 · 2 comments
Milestone

Comments

@mkruisselbrink
Copy link
Contributor

Before #55 it was possible to delete a file by just having access to a file handle. I.e. you could get a file handle from showSaveFilePicker, decide you don't want to save after all, and delete the file. Since now deletion requires access to the parent directory this is no longer possible (as pointed out in https://crbug.com/1114923), and I think we might want to bring back a "remove self" method, at least for file handles.

@mkruisselbrink mkruisselbrink added this to the V2 milestone Aug 17, 2020
@pwnall
Copy link
Collaborator

pwnall commented Nov 10, 2020

This is going to be exciting to spec... we'll need to clarify that for files/dirs w/ multiple hardlinks/symlinks, the entry that gets deleted is the entry corresponding to the path that was used to obtain the handle.

@MartinZikmund
Copy link

This would be valuable not only for files but for directories as well.

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 a pull request may close this issue.

3 participants