MCPcopy Index your code
hub / github.com/easydiffusion/easydiffusion / readFile

Function readFile

ui/media/js/dnd.js:785–789  ·  view source on GitHub ↗
(file, i)

Source from the content-addressed store, hash-verified

783}
784
785async function readFile(file, i) {
786 console.log(`Event %o reading file[${i}]:${file.name}...`)
787 const fileContent = (await file.text()).trim()
788 return await parseContent(fileContent)
789}
790
791function dropHandler(ev) {
792 console.log("Content dropped...")

Callers

nothing calls this directly

Calls 1

parseContentFunction · 0.85

Tested by

no test coverage detected