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

Function readKeyStat

packages/engine/src/services/extractionCache.ts:92–99  ·  view source on GitHub ↗
(videoPath: string)

Source from the content-addressed store, hash-verified

90 * orphaned entry.
91 */
92export function readKeyStat(videoPath: string): { mtimeMs: number; size: number } | null {
93 try {
94 const stat = statSync(videoPath);
95 return { mtimeMs: Math.floor(stat.mtimeMs), size: stat.size };
96 } catch {
97 return null;
98 }
99}
100
101function canonicalKeyBlob(input: CacheKeyInput): string {
102 const durationForKey = Number.isFinite(input.duration) ? input.duration : -1;

Callers 3

keyForFunction · 0.85
extractAllVideoFramesFunction · 0.85

Calls

no outgoing calls

Tested by 1

keyForFunction · 0.68