MCPcopy Create free account
hub / github.com/Make-md/makemd / createItemAtPath

Method createItemAtPath

src/core/spaceManager/spaceManager.ts:295–297  ·  view source on GitHub ↗
(parent: string, type: string, name: string, content?: any)

Source from the content-addressed store, hash-verified

293 return this.spaceAdapters.flatMap(f => f.allPaths(type));
294 }
295 public createItemAtPath (parent: string, type: string, name: string, content?: any) :Promise<string> {
296 return this.adapterForPath(parent).createItemAtPath(parent, type, name, content);
297 }
298 public renamePath (oldPath: string, newPath: string) {
299 return this.adapterForPath(oldPath).renamePath(oldPath, newPath);
300 }

Callers

nothing calls this directly

Calls 2

adapterForPathMethod · 0.95
createItemAtPathMethod · 0.65

Tested by

no test coverage detected