MCPcopy Create free account
hub / github.com/TomClive/SeeDance2Stitcher / run

Function run

server.js:45–57  ·  view source on GitHub ↗
(command, args, options = {})

Source from the content-addressed store, hash-verified

43}
44
45function run(command, args, options = {}) {
46 return new Promise((resolve, reject) => {
47 execFile(command, args, { maxBuffer: 1024 * 1024 * 256, ...options }, (error, stdout, stderr) => {
48 if (error) {
49 error.stderr = stderr?.toString?.() || "";
50 error.message = explainMissingTool(error, command);
51 reject(error);
52 return;
53 }
54 resolve({ stdout, stderr });
55 });
56 });
57}
58
59async function ensureDirs() {
60 await fsp.mkdir(UPLOADS, { recursive: true });

Callers 3

ffprobeFunction · 0.85
decodeGrayFunction · 0.85
handleFrameFunction · 0.85

Calls 1

explainMissingToolFunction · 0.85

Tested by

no test coverage detected