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

Method replaceFile

src/core/leoAtFile.ts:3776–3888  ·  view source on GitHub ↗

* Write or create the given file from the contents. * Return True if the original file was changed.

(
        contents: string,
        encoding: BufferEncoding,
        fileName: string,
        root: Position,
        ignoreBlankLines = false
    )

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 7

asisWriteMethod · 0.80
writeOneAtAutoNodeMethod · 0.80
writeOneAtCleanNodeMethod · 0.80
writeOneAtEditNodeMethod · 0.80
writeOneAtFileNodeMethod · 0.80
writeOneAtNosentNodeMethod · 0.80
leoAtFile.test.tsFile · 0.80

Calls 15

__bool__Method · 0.80
setFileTimeStampMethod · 0.80
rememberReadPathMethod · 0.80
checkPythonCodeMethod · 0.80
addToOrphanListMethod · 0.80
checkUnchangedFilesMethod · 0.80
warningMethod · 0.80
clearDirtyMethod · 0.45
getBoolMethod · 0.45
getStringMethod · 0.45

Tested by

no test coverage detected