MCPcopy Index your code
hub / github.com/codedogQBY/ReadAny / getExt

Function getExt

packages/core/src/sync/sync-files.ts:66–69  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

64}
65
66function getExt(name: string): string {
67 const idx = name.lastIndexOf(".");
68 return idx >= 0 ? name.slice(idx + 1) : "";
69}
70
71function isDirectFileTransferUnsupported(error: unknown): boolean {
72 const message = error instanceof Error ? error.message : String(error);

Callers 4

makeTempTransferPathFunction · 0.85
syncFilesFunction · 0.85
migrateBookRemoteStateFunction · 0.85
downloadBookFileFunction · 0.85

Calls 1

sliceMethod · 0.80

Tested by

no test coverage detected