MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / findInCommonDirs

Function findInCommonDirs

packages/cli/src/browser/ffmpeg.ts:37–43  ·  view source on GitHub ↗
(name: "ffmpeg" | "ffprobe")

Source from the content-addressed store, hash-verified

35 : ["/opt/homebrew/bin", "/usr/local/bin", "/usr/bin", "/bin", "/snap/bin"];
36
37function findInCommonDirs(name: "ffmpeg" | "ffprobe"): string | undefined {
38 for (const dir of COMMON_BIN_DIRS) {
39 const candidate = `${dir}/${name}`;
40 if (existsSync(candidate)) return candidate;
41 }
42 return undefined;
43}
44
45function findConfiguredBinary(
46 envName: string,

Callers 1

findConfiguredBinaryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected