@pumpkin-plugins/plugin-kit API / atomic-write / atomicWrite
Function: atomicWrite()
atomicWrite(
root,path,content):void
Defined in: tools/plugin-kit/src/atomic-write.ts:11
Replaces a file through an exclusively created sibling, preserving existing temporary files. The sibling's data is synced to disk before it is renamed over the target.
Parameters
root
Descriptor
path
string
content
Uint8Array
Returns
void