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

Function readZipEntries

src/daemon/artifact-archive.ts:77–84  ·  view source on GitHub ↗
(archivePath: string)

Source from the content-addressed store, hash-verified

75}
76
77export async function readZipEntries(archivePath: string): Promise<string[] | null> {
78 const result = await runCmd('unzip', ['-Z1', archivePath], { allowFailure: true });
79 if (result.exitCode !== 0) return null;
80 return result.stdout
81 .split(/\r?\n/)
82 .map((entry) => entry.trim())
83 .filter(Boolean);
84}
85
86function resolveArchiveRootName(entries: string[], platform: 'ios' | 'android'): string {
87 const roots = new Set<string>();

Callers 3

detectIosArtifactKindFunction · 0.90
detectIosIpaMetadataFunction · 0.90

Calls 1

runCmdFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…