MCPcopy
hub / github.com/callumalpass/tasknotes / getFileName

Method getFileName

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

Source from the content-addressed store, hash-verified

164 }
165
166 private getFileName(path: string): string {
167 return path.split('/').pop() || '';
168 }
169
170 private getBaseName(path: string): string {
171 const fileName = this.getFileName(path);

Callers 5

createMethod · 0.95
renameMethod · 0.95
ensureFolderExistsMethod · 0.95
getBaseNameMethod · 0.95
getExtensionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected