MCPcopy Create free account
hub / github.com/boltex/leojs / replaceFileWithString

Method replaceFileWithString

src/core/leoShadow.ts:161–215  ·  view source on GitHub ↗

* Replace the file with s if s is different from theFile's contents. * Return True if theFile was changed.

(
        encoding: BufferEncoding,
        fileName: string,
        s: string
    )

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

writeOneAtShadowNodeMethod · 0.80
propagate_changesMethod · 0.80
leoShadow.test.tsFile · 0.80

Calls 4

setFileTimeStampMethod · 0.80
getBoolMethod · 0.45
errorMethod · 0.45
writeFileMethod · 0.45

Tested by

no test coverage detected