MCPcopy Create free account
hub / github.com/codesandbox/excalidraw-firebase / writeFileSync

Method writeFileSync

.pnp.cjs:6724–6731  ·  view source on GitHub ↗
(p, content, opts)

Source from the content-addressed store, hash-verified

6722 });
6723 }
6724 writeFileSync(p, content, opts) {
6725 const fsNativePath = typeof p === `string` ? npath.fromPortablePath(p) : p;
6726 if (opts) {
6727 this.realFs.writeFileSync(fsNativePath, content, opts);
6728 } else {
6729 this.realFs.writeFileSync(fsNativePath, content);
6730 }
6731 }
6732 async unlinkPromise(p) {
6733 return await new Promise((resolve, reject) => {
6734 this.realFs.unlink(npath.fromPortablePath(p), this.makeCallback(resolve, reject));

Callers

nothing calls this directly

Calls 1

writeFileSyncMethod · 0.45

Tested by

no test coverage detected