Error ENOENT - no such file or directory

[{"id":"c083b11f.d977e","type":"fs-ops-dir","z":"f73bbce9.98ce6","name":"get list of files matching Reboot*","path":"sourcePath","pathType":"msg","filter":"*","filterType":"str","dir":"payload","dirType":"msg","x":970,"y":160,"wires":[["bc4d99d9.c71808"]]},{"id":"bc4d99d9.c71808","type":"split","z":"f73bbce9.98ce6","name":"","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"","x":970,"y":200,"wires":[["d7ddfa7e.1755a8","a7eaf387.fc124"]]},{"id":"d7ddfa7e.1755a8","type":"debug","z":"f73bbce9.98ce6","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":1130,"y":240,"wires":[]},{"id":"934121d1.42736","type":"fs-ops-dir","z":"f73bbce9.98ce6","name":"","path":"meno","pathType":"msg","filter":"","filterType":"str","dir":"files","dirType":"msg","x":260,"y":460,"wires":[["786a2128.ac4b1"]]},{"id":"786a2128.ac4b1","type":"fs-ops-stats","z":"f73bbce9.98ce6","name":"","path":"meno","pathType":"msg","filename":"files","filenameType":"msg","stats":"stats","sizeType":"msg","x":260,"y":500,"wires":[["e83141ad.cb743"]]},{"id":"4682ad5c.0d2da4","type":"debug","z":"f73bbce9.98ce6","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":270,"y":580,"wires":[]},{"id":"e83141ad.cb743","type":"function","z":"f73bbce9.98ce6","name":"Combine and sort","func":"var combined = [];\n\nfor (var i = 0; i < msg.files.length; i++) {\n    var file = msg.files[i];\n    var stat = msg.stats[i];\n    \n    combined.push({\n        path: msg.meno,\n        file,\n        ...stat\n    })\n}\n\ncombined.sort((a, b) => b.birthtimeMs - a.birthtimeMs);\n\nmsg.payload = combined;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":290,"y":540,"wires":[["4682ad5c.0d2da4","2cf82f16.e9562"]]},{"id":"91563c80.39b99","type":"inject","z":"f73bbce9.98ce6","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"},{"p":"meno","v":"C:\\Users\\Lukas\\Downloads","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":260,"y":420,"wires":[["934121d1.42736"]]},{"id":"6995d06e.d59fd","type":"function","z":"f73bbce9.98ce6","name":"","func":"\n\nmsg.zdroj = msg.payload.path+\"\\\\\"+msg.payload.file;\nmsg.dest = msg.zdroj.replace(\"Downloads\", \"Desktop\\\\Test\")\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":800,"y":540,"wires":[["cad592f6.edf86"]]},{"id":"cad592f6.edf86","type":"change","z":"f73bbce9.98ce6","name":"","rules":[{"t":"set","p":"destinationPath","pt":"msg","to":"dest","tot":"msg"},{"t":"set","p":"sourcePath","pt":"msg","to":"zdroj","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1000,"y":540,"wires":[["f378422f.dbea"]]},{"id":"fafec455.7a3d38","type":"batch","z":"f73bbce9.98ce6","name":"","mode":"count","count":"4","overlap":0,"interval":10,"allowEmptySequence":false,"topics":[],"x":630,"y":540,"wires":[["6995d06e.d59fd"]]},{"id":"2cf82f16.e9562","type":"split","z":"f73bbce9.98ce6","name":"","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"","x":490,"y":540,"wires":[["fafec455.7a3d38"]]},{"id":"d90e7c21.204a5","type":"debug","z":"f73bbce9.98ce6","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":970,"y":700,"wires":[]},{"id":"f378422f.dbea","type":"change","z":"f73bbce9.98ce6","name":"","rules":[{"t":"delete","p":"meno","pt":"msg"},{"t":"delete","p":"stats","pt":"msg"},{"t":"delete","p":"files","pt":"msg"},{"t":"delete","p":"parts","pt":"msg"},{"t":"delete","p":"zdroj","pt":"msg"},{"t":"delete","p":"dest","pt":"msg"},{"t":"delete","p":"payload","pt":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":920,"y":620,"wires":[["d90e7c21.204a5","c083b11f.d977e"]]},{"id":"a7eaf387.fc124","type":"fs-ops-copy","z":"f73bbce9.98ce6","name":"","sourcePath":"sourcePath","sourcePathType":"msg","sourceFilename":"payload","sourceFilenameType":"msg","destPath":"destinationPath","destPathType":"msg","destFilename":"payload","destFilenameType":"msg","link":false,"overwrite":true,"x":1200,"y":200,"wires":[[]]}]

This doesn´t work. But I don´t know why? I little upgrade code from this thread. When I use move, it works but when I connect my part to second part from thread, it doesn´t work, but copy doesn´t work with both.

Thanks for every advice.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.