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

Function uniqueOutputPath

server.js:127–136  ·  view source on GitHub ↗
(filename)

Source from the content-addressed store, hash-verified

125}
126
127function uniqueOutputPath(filename) {
128 const parsed = path.parse(filename);
129 let candidate = path.join(OUTPUTS, filename);
130 let index = 2;
131 while (fs.existsSync(candidate)) {
132 candidate = path.join(OUTPUTS, `${parsed.name}-${index}${parsed.ext}`);
133 index += 1;
134 }
135 return candidate;
136}
137
138function toneFilter(tone, frames, fps, scope = "join") {
139 if (!tone || frames <= 0) return "";

Callers 2

handleExportFunction · 0.85
handleExportCollageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected