MCPcopy Index your code
hub / github.com/nodeSolidServer/node-solid-server / readResource

Method readResource

lib/ldp.mjs:80–87  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

78 }
79
80 async readResource (url) {
81 try {
82 const { path } = await this.resourceMapper.mapUrlToFile({ url })
83 return await withLock(path, () => promisify(fs.readFile)(path, { encoding: 'utf8' }))
84 } catch (err) {
85 throw error(err.status, err.message)
86 }
87 }
88
89 async readContainerMeta (url) {
90 if (url[url.length - 1] !== '/') {

Callers 4

readContainerMetaMethod · 0.95
graphMethod · 0.95
getProfileGraphMethod · 0.80
ldp-test.mjsFile · 0.80

Calls 2

withLockFunction · 0.85
mapUrlToFileMethod · 0.80

Tested by

no test coverage detected