MCPcopy Index your code
hub / github.com/callumalpass/tasknotes / getParentPath

Method getParentPath

tests/__mocks__/obsidian.ts:161–164  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

159 }
160
161 private getParentPath(path: string): string {
162 const lastSlash = path.lastIndexOf('/');
163 return lastSlash > 0 ? path.substring(0, lastSlash) : '';
164 }
165
166 private getFileName(path: string): string {
167 return path.split('/').pop() || '';

Callers 2

createMethod · 0.95
ensureFolderExistsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected