1 parent
b85759e27c
commit
7ee5a5bc48
6 files changed
+81
-154
No files matched your search
@@ -25,22 +25,6 @@ const details = () => ({
|
||||
inputUI: { type: 'dropdown', options: ['true', 'false'] },
|
||||
tooltip: 'Skip when the source is already inside workDir.',
|
||||
},
|
||||
{
|
||||
label: 'Copy method',
|
||||
name: 'copyMethod',
|
||||
type: 'string',
|
||||
defaultValue: 'auto',
|
||||
inputUI: { type: 'dropdown', options: ['auto', 'native', 'stream'] },
|
||||
tooltip: 'Auto uses the operating system copy API; stream is a fallback for problematic mounts.',
|
||||
},
|
||||
{
|
||||
label: 'Stream buffer size (MB)',
|
||||
name: 'bufferSizeMb',
|
||||
type: 'string',
|
||||
defaultValue: '16',
|
||||
inputUI: { type: 'dropdown', options: ['4', '16', '64'] },
|
||||
tooltip: 'Used only with stream copy; larger values can improve high-latency SMB mounts.',
|
||||
},
|
||||
],
|
||||
outputs: [{ number: 1, tooltip: 'File is ready in workDir — continue to next plugin' }],
|
||||
});
|
||||
@@ -73,8 +57,6 @@ const plugin = async (args) => {
|
||||
jobLog,
|
||||
updateProgress: args.updateProgress,
|
||||
label: 'copyToWorkDir',
|
||||
copyMethod: args.inputs.copyMethod || 'auto',
|
||||
bufferSizeMb: args.inputs.bufferSizeMb || '16',
|
||||
});
|
||||
|
||||
return {
|
||||
|
||||
@@ -25,22 +25,6 @@ const details = () => ({
|
||||
inputUI: { type: 'dropdown', options: ['true', 'false'] },
|
||||
tooltip: 'Delete the processed file after it has replaced the original.',
|
||||
},
|
||||
{
|
||||
label: 'Copy method',
|
||||
name: 'copyMethod',
|
||||
type: 'string',
|
||||
defaultValue: 'auto',
|
||||
inputUI: { type: 'dropdown', options: ['auto', 'native', 'stream'] },
|
||||
tooltip: 'Auto uses the operating system copy API; stream is a fallback for problematic mounts.',
|
||||
},
|
||||
{
|
||||
label: 'Stream buffer size (MB)',
|
||||
name: 'bufferSizeMb',
|
||||
type: 'string',
|
||||
defaultValue: '16',
|
||||
inputUI: { type: 'dropdown', options: ['4', '16', '64'] },
|
||||
tooltip: 'Used only with stream copy; larger values can improve high-latency SMB mounts.',
|
||||
},
|
||||
],
|
||||
outputs: [{ number: 1, tooltip: 'Original file replaced — continue to next plugin' }],
|
||||
});
|
||||
@@ -78,8 +62,6 @@ const plugin = async (args) => {
|
||||
jobLog,
|
||||
updateProgress: args.updateProgress,
|
||||
label: 'replaceOriginalFile',
|
||||
copyMethod: args.inputs.copyMethod || 'auto',
|
||||
bufferSizeMb: args.inputs.bufferSizeMb || '16',
|
||||
});
|
||||
|
||||
if (fs.existsSync(destination)) {
|
||||
|
||||
Reference in new issue
Block a user