What is wrong with this flow?
It writes to a file and then reads it again. At least it should. It fails to find the file.
{
"nodes": [
{
"parameters": {
"functionCode": "items[0].json = [];\nreturn items;"
},
"name": "Data",
"type": "n8n-nodes-base.function",
"position": [
630,
220
],
"typeVersion": 1
},
{
"parameters": {
"fileName": "old.json"
},
"name": "Write",
"type": "n8n-nodes-base.writeBinaryFile",
"typeVersion": 1,
"position": [
790,
220
]
},
{
"parameters": {
"filePath": "old.json"
},
"name": "Read",
"type": "n8n-nodes-base.readBinaryFile",
"typeVersion": 1,
"position": [
950,
220
]
}
],
"connections": {
"Data": {
"main": [
[
{
"node": "Write",
"type": "main",
"index": 0
}
]
]
},
"Write": {
"main": [
[
{
"node": "Read",
"type": "main",
"index": 0
}
]
]
}
}
}