MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / thisExtractIntoTemp

Function thisExtractIntoTemp

apps/web/services/slack/syncWithFiles.ts:136–143  ·  view source on GitHub ↗
(file: any)

Source from the content-addressed store, hash-verified

134}
135
136async function thisExtractIntoTemp(file: any) {
137 const target = tmpdir() + '/' + v4();
138 const zip = new StreamZip.async({ file });
139 fs.mkdirSync(target, { recursive: true });
140 await zip.extract(null, target);
141 await zip.close();
142 return target;
143}

Callers

nothing calls this directly

Calls 1

closeMethod · 0.65

Tested by

no test coverage detected