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

Method getExtension

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

Source from the content-addressed store, hash-verified

174 }
175
176 private getExtension(path: string): string {
177 const fileName = this.getFileName(path);
178 const lastDot = fileName.lastIndexOf('.');
179 return lastDot > 0 ? fileName.substring(lastDot + 1) : '';
180 }
181
182 // Event management
183 on(event: string, callback: (...args: any[]) => void): void {

Callers 1

createMethod · 0.95

Calls 1

getFileNameMethod · 0.95

Tested by

no test coverage detected