Refs: #182270
As discussed with @sandy081, we can try to provide atomic option for writeFile and delete which:
- asks for a
Uri to use for the atomic support as a temp file
writeFile: writes to the temp file and then renames to the target
delete: renames the target to the temp file and then deletes [1]
We should implement this as file system provider capability but also surface as options on the file service.
[1] we should continue to support the tmp folder as fallback for delete as we do today
Refs: #182270
As discussed with @sandy081, we can try to provide
atomicoption forwriteFileanddeletewhich:Urito use for the atomic support as a temp filewriteFile: writes to the temp file and then renames to the targetdelete: renames the target to the temp file and then deletes [1]We should implement this as file system provider capability but also surface as options on the file service.
[1] we should continue to support the
tmpfolder as fallback fordeleteas we do today