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

Method normalizePath

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

Source from the content-addressed store, hash-verified

155
156 // Path utilities
157 private normalizePath(path: string): string {
158 return path.replace(/\\/g, '/').replace(/\/+/g, '/').replace(/^\//, '').replace(/\/$/, '');
159 }
160
161 private getParentPath(path: string): string {
162 const lastSlash = path.lastIndexOf('/');

Callers 7

createMethod · 0.95
deleteMethod · 0.95
renameMethod · 0.95
existsMethod · 0.95
readMethod · 0.95
getFileMethod · 0.95
ensureFolderExistsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected