MCPcopy Create free account
hub / github.com/breck7/scroll / write

Method write

external/.scrollLibs.js:21750–21755  ·  view source on GitHub ↗
(fullPath, content)

Source from the content-addressed store, hash-verified

21748 return Disk.getFiles(folder)
21749 }
21750 async write(fullPath, content) {
21751 if (isUrl(fullPath)) {
21752 throw new Error("Cannot write to URL")
21753 }
21754 Disk.writeIfChanged(fullPath, content)
21755 }
21756 async getMTime(absolutePath) {
21757 if (isUrl(absolutePath)) {
21758 const cached = urlCache[absolutePath]

Callers 6

_formatAndSaveMethod · 0.45
updateIdsCommandMethod · 0.45
formatFileMethod · 0.45
cloneMethod · 0.45
writeMethod · 0.45

Calls 1

isUrlFunction · 0.85

Tested by

no test coverage detected