MCPcopy Create free account
hub / github.com/callstack/agent-device / readBaseNameIfMeaningful

Function readBaseNameIfMeaningful

src/daemon/artifact-materialization.ts:188–193  ·  view source on GitHub ↗
(filePath: string, suffix?: string)

Source from the content-addressed store, hash-verified

186}
187
188function readBaseNameIfMeaningful(filePath: string, suffix?: string): string | undefined {
189 const basename = suffix
190 ? path.basename(filePath, suffix)
191 : path.basename(filePath, path.extname(filePath));
192 return basename && basename !== 'artifact' ? basename : undefined;
193}
194
195function normalizeArchiveExtension(
196 archivePath: string,

Callers 3

detectAndroidMetadataFunction · 0.85
detectIosIpaMetadataFunction · 0.85
detectIosAppMetadataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…