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

Method exists

external/.scrollLibs.js:21807–21813  ·  view source on GitHub ↗
(absolutePath)

Source from the content-addressed store, hash-verified

21805 return await this.read(absolutePath)
21806 }
21807 async exists(absolutePath) {
21808 if (isUrl(absolutePath)) {
21809 const result = await fetchWithCache(absolutePath)
21810 return result.exists
21811 }
21812 return this.inMemoryFiles[absolutePath] !== undefined
21813 }
21814 async write(absolutePath, content) {
21815 if (isUrl(absolutePath)) {
21816 throw new Error("Cannot write to URL")

Callers

nothing calls this directly

Calls 2

isUrlFunction · 0.85
fetchWithCacheFunction · 0.85

Tested by

no test coverage detected