File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
client/platform/desktop/backend/native Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -130,8 +130,13 @@ async function runPipeline(
130130 }
131131
132132 if ( runPipelineArgs . pipeline . type === 'filter' ) {
133- command . push ( `-s kwa_writer:output_directory="${ npath . join ( jobWorkDir , 'output' ) } "` ) ;
134- command . push ( `-s image_writer:file_name_prefix="${ jobWorkDir } /"` ) ;
133+ // Create a subdirectory within the working directory to store output images
134+ const outputDirectoryName = npath . join ( jobWorkDir , 'output' ) ;
135+ if ( ! fs . existsSync ( outputDirectoryName ) ) {
136+ await fs . mkdir ( outputDirectoryName ) ;
137+ }
138+ command . push ( `-s kwa_writer:output_directory="${ outputDirectoryName } "` ) ;
139+ command . push ( `-s image_writer:file_name_prefix="${ outputDirectoryName } /"` ) ;
135140 }
136141 if ( runPipelineArgs . pipeline . type === 'transcode' ) {
137142 command . push ( `-s video_writer:video_filename="${ npath . join ( jobWorkDir , `${ datasetId } .mp4` ) } "` ) ;
You can’t perform that action at this time.
0 commit comments