MCPcopy Create free account
hub / github.com/ShouChenICU/FastSend / fileMapWithoutRoot

Function fileMapWithoutRoot

app/utils/files.ts:154–162  ·  view source on GitHub ↗
(fileMap: any)

Source from the content-addressed store, hash-verified

152 * @param fileMap
153 */
154export function fileMapWithoutRoot(fileMap: any) {
155 const res: any = {}
156 for (let k in fileMap) {
157 const fileInfo = fileMap[k]
158 fileInfo.paths.shift()
159 res[k.replace(/.*?\//, '')] = fileInfo
160 }
161 return res
162}

Callers 2

selectSyncDirFunction · 0.85
buildSenderPayloadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected