MCPcopy Index your code
hub / github.com/coder/mux / getFallbackFilename

Function getFallbackFilename

src/node/utils/attachments/readAttachmentFromPath.ts:187–192  ·  view source on GitHub ↗
(
  resolvedPath: string,
  filename: string | null | undefined
)

Source from the content-addressed store, hash-verified

185}
186
187function getFallbackFilename(
188 resolvedPath: string,
189 filename: string | null | undefined
190): string | undefined {
191 return normalizeOptionalString(filename) ?? normalizeOptionalString(path.basename(resolvedPath));
192}
193
194interface DisplayMediaTypeCandidate {
195 mediaType: string;

Callers 1

readAttachFileFromPathFunction · 0.85

Calls 2

normalizeOptionalStringFunction · 0.70
basenameMethod · 0.45

Tested by

no test coverage detected