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

Method getBaseName

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

Source from the content-addressed store, hash-verified

168 }
169
170 private getBaseName(path: string): string {
171 const fileName = this.getFileName(path);
172 const lastDot = fileName.lastIndexOf('.');
173 return lastDot > 0 ? fileName.substring(0, lastDot) : fileName;
174 }
175
176 private getExtension(path: string): string {
177 const fileName = this.getFileName(path);

Callers 2

createMethod · 0.95
renameMethod · 0.95

Calls 1

getFileNameMethod · 0.95

Tested by

no test coverage detected