MCPcopy Create free account
hub / github.com/chhoumann/quickadd / basenameFor

Function basenameFor

src/utils/fileSyntax.ts:285–288  ·  view source on GitHub ↗
(file: TFile)

Source from the content-addressed store, hash-verified

283}
284
285function basenameFor(file: TFile): string {
286 if (file.basename) return file.basename;
287 return fileBasenameFromPath(file.path);
288}
289
290export interface FileDisplayInfo {
291 primary: string;

Callers 1

buildFileDisplayInfosFunction · 0.85

Calls 1

fileBasenameFromPathFunction · 0.85

Tested by

no test coverage detected