WICG / file-system-access

Expose the file system on the user’s device, so Web apps can interoperate with the user’s native applications.
https://wicg.github.io/file-system-access/
Other
669 stars 66 forks source link

feature-request allow dhandle.removeEntry to optionally move file to the user's trash/recycle receptacle #268

Open ddumont opened 3 years ago

ddumont commented 3 years ago

dhandle.removeEntry('file', { soft: true });

for a "soft" delete... or send to recycle bin... trash can... whatever the OS supports. "Best effort" compliance would be fine. It would be nice if users could restore files / folders they accidentally deleted through my ui.

slaymaker1907 commented 3 years ago

I would also recommend making this a request which browsers are not required to respect in case users don't want applications hard deleting files if soft is set to false.