2023-02-21 04:51:18
Topic starter
Within NEO Plasma, I have a script node with output type as 'File'. How to create a file from script node and assign it to output port?
The python script below will create a output file and assign it to output port.A simple breakdown of the script is below:
def executeNode(inputs):
# File can be created only under directory '/temp'
output_file = '/temp/OutputFile'
with open(output_file, "w") as file_obj:
out_file.write('This is a sample')
outputs = {}
outputs['Output 1'] = output_file
return outputs
Note: File can be created under directory '/temp'