Skip to content

Provide atomic write and delete support in file service #182974

@bpasero

Description

@bpasero

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

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions