2023-02-21 10:13:25
Topic starter
How to read files in the script node when uploaded using File Manager in Pipeline?
The python script below will read the uploaded files. A simple breakdown of the script is below:
def executeNode(inputs):
outputs = {}
# file uploaded to file manager by name 'abc.json'
upload_file = './abc.json'
# open file for read
with open(upload_file) as f:
lines = f.readlines()
print(lines)
return outputs