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

Method read

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

Source from the content-addressed store, hash-verified

21791 this.inMemoryFiles = inMemoryFiles
21792 }
21793 async read(absolutePath) {
21794 if (isUrl(absolutePath)) {
21795 const result = await fetchWithCache(absolutePath)
21796 return result.content
21797 }
21798 const value = this.inMemoryFiles[absolutePath]
21799 if (value === undefined) {
21800 return ""
21801 }
21802 return value
21803 }
21804 async createReadStream(absolutePath) {
21805 return await this.read(absolutePath)
21806 }

Callers 1

createReadStreamMethod · 0.95

Calls 2

isUrlFunction · 0.85
fetchWithCacheFunction · 0.85

Tested by

no test coverage detected