I use this node
msg.filepath = ``; with directory but don't work
No such file or directory
[
{
"id": "9e0822ba05e4d42d",
"type": "md5.file",
"z": "b733adccca0e0554",
"name": "trigger.txt",
"filepath": "",
"hashField": "md5",
"x": 520,
"y": 1340,
"wires": [
[
"759c389c2304de12"
]
]
},
{
"id": "759c389c2304de12",
"type": "debug",
"z": "b733adccca0e0554",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"statusVal": "",
"statusType": "auto",
"x": 740,
"y": 1340,
"wires": []
},
{
"id": "5d055539f864b3e5",
"type": "inject",
"z": "b733adccca0e0554",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "str",
"x": 230,
"y": 1340,
"wires": [
[
"653615c339614e35"
]
]
},
{
"id": "653615c339614e35",
"type": "function",
"z": "b733adccca0e0554",
"name": "",
"func": "msg.filepath = 'C:\\\\Users\\\\dumitru.maros\\\\.node-red\\\\doc\\\\trigger.txt'\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 380,
"y": 1340,
"wires": [
[
"9e0822ba05e4d42d"
]
]
}
]