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

Method resolveFilePath

lib/resource-mapper.mjs:64–68  ·  view source on GitHub ↗
(hostname, filePath = '')

Source from the content-addressed store, hash-verified

62
63 // Returns the file path corresponding to the relative file path on the pod
64 resolveFilePath (hostname, filePath = '') {
65 return !this._includeHost
66 ? `${this._rootPath}${filePath}`
67 : `${this._rootPath}/${hostname}${filePath}`
68 }
69
70 // Maps a given server file to a URL
71 async mapFileToUrl ({ path, hostname }) {

Callers 7

mapUrlToFileMethod · 0.95
ensureWelcomePageFunction · 0.80
putMethod · 0.80
copyMethod · 0.80
hasReadPermissionsFunction · 0.80
patchHandlerFunction · 0.80
accountDirForMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected