Ok did it the following way now:
[
{
"id": "b2ff03a7268c4151",
"type": "tab",
"label": "SECRET",
"disabled": false,
"info": "",
"env": []
},
{
"id": "783c455e1d595834",
"type": "exec",
"z": "b2ff03a7268c4151",
"command": "doesntmatter",
"addpay": "",
"append": "",
"useSpawn": "false",
"timer": "",
"winHide": false,
"oldrc": false,
"name": "",
"x": 550,
"y": 160,
"wires": [
[
"cea0cc643dbd4ffe"
],
[],
[]
]
},
{
"id": "297602128150a085",
"type": "inject",
"z": "b2ff03a7268c4151",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 140,
"y": 160,
"wires": [
[
"783c455e1d595834"
]
]
},
{
"id": "cda84830c6810720",
"type": "sftp in",
"z": "b2ff03a7268c4151",
"name": "anypath",
"sftp": "",
"operation": "put",
"filename": "",
"localFilename": "",
"workdir": "/anypath",
"x": 680,
"y": 300,
"wires": [
[
"e2b4c85b292843c4"
]
]
},
{
"id": "cea0cc643dbd4ffe",
"type": "fs-file-lister",
"z": "b2ff03a7268c4151",
"name": "",
"start": "/anypath",
"pattern": "ABC_*",
"folders": "*",
"hidden": true,
"lstype": "files",
"path": false,
"single": false,
"depth": 0,
"stat": false,
"showWarnings": true,
"x": 240,
"y": 240,
"wires": [
[
"165da27c15677898"
]
]
},
{
"id": "165da27c15677898",
"type": "change",
"z": "b2ff03a7268c4151",
"name": "",
"rules": [
{
"t": "set",
"p": "temp",
"pt": "msg",
"to": "payload",
"tot": "msg",
"dc": true
},
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "{}",
"tot": "json"
},
{
"t": "set",
"p": "payload.data",
"pt": "msg",
"to": "\"/somepath\" & msg.temp",
"tot": "jsonata"
},
{
"t": "set",
"p": "payload.filename",
"pt": "msg",
"to": "temp",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 460,
"y": 300,
"wires": [
[
"cda84830c6810720"
]
]
},
{
"id": "e2b4c85b292843c4",
"type": "fs-ops-delete",
"z": "b2ff03a7268c4151",
"name": "",
"path": "/anypath/",
"pathType": "str",
"filename": "temp",
"filenameType": "msg",
"x": 870,
"y": 300,
"wires": [
[]
]
}
]
Thanks for your support