writeFileRespectingStore
HardKAS SDK / artifacts/src / writeFileRespectingStore
Function: writeFileRespectingStore()
writeFileRespectingStore(
filePath,data,plainWrite):Promise<void>
Defined in: packages/artifacts/src/store-mutation.ts:110
A write to a caller-chosen path (an --out, an export): through the gate when the path is inside an artifact store,
otherwise exactly the caller's own plain write.
Parameters
filePath
string
data
string | Uint8Array<ArrayBufferLike>
plainWrite
() => unknown
Returns
Promise<void>