Here is my sample flow.
it goes looking at C:\Temp for files that look like 'test.csv' (note fs-file-lister node) - this can be replaced by an inject, function or template that delivers ["C:\temp\test.csv","C:\temp\test2.csv"]
The two files are:
test.csv
col1,col2,col3
V1,V2,V3
Va,Vb,Vc
last,line,test
and
test2.csv
col1,col2,col3
1b,2b,3b
a,b,c
green,yellow,zombie
x,y,test2
When selected for 'Output a single message [array]' the CSV returns only the last line of both files:
[{"col1":"last","col2":"line","col3":"test"},{"col1":"x","col2":"y","col3":"test2"}]
[{"id":"22e1f11b.8536ae","type":"inject","z":"69a3eb1f.9d3404","name":"Periodic","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":220,"y":340,"wires":[["c5342392.4763b"]]},{"id":"c5342392.4763b","type":"fs-file-lister","z":"69a3eb1f.9d3404","name":"","start":"C:\\temp","pattern":"test*.csv","folders":"*","hidden":true,"lstype":"files","path":true,"single":true,"depth":0,"stat":false,"showWarnings":true,"x":400,"y":340,"wires":[["ea1699f3.1754c8","6e224270.cd0b3c"]]},{"id":"4338b90e.28bd28","type":"comment","z":"69a3eb1f.9d3404","name":"Fetch new files","info":"","x":320,"y":260,"wires":[]},{"id":"ea1699f3.1754c8","type":"debug","z":"69a3eb1f.9d3404","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":610,"y":260,"wires":[]},{"id":"e27a29aa.dbe898","type":"debug","z":"69a3eb1f.9d3404","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1250,"y":340,"wires":[]},{"id":"a55c956d.93b8a8","type":"file in","z":"69a3eb1f.9d3404","name":"Fetch File","filename":"","format":"utf8","chunk":false,"sendError":false,"encoding":"utf8","x":940,"y":340,"wires":[["fed36973.ed18a8"]]},{"id":"fed36973.ed18a8","type":"csv","z":"69a3eb1f.9d3404","name":"","sep":",","hdrin":true,"hdrout":"none","multi":"mult","ret":"\\r\\n","temp":"","skip":"0","strings":true,"include_empty_strings":false,"include_null_values":false,"x":1090,"y":340,"wires":[["e27a29aa.dbe898"]]},{"id":"6e224270.cd0b3c","type":"split","z":"69a3eb1f.9d3404","name":"","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"","x":570,"y":340,"wires":[["9fc72b48.961548"]]},{"id":"9fc72b48.961548","type":"change","z":"69a3eb1f.9d3404","name":"","rules":[{"t":"set","p":"filename","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":750,"y":340,"wires":[["a55c956d.93b8a8"]]},{"id":"b48a4080.c7f46","type":"comment","z":"69a3eb1f.9d3404","name":"select array output - includes only last line","info":"","x":1100,"y":260,"wires":[]}]
if we clobber the msg and recreate with only 'payload'
it works (but seems an awful work around)
[{"id":"22e1f11b.8536ae","type":"inject","z":"69a3eb1f.9d3404","name":"Periodic","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":220,"y":340,"wires":[["c5342392.4763b"]]},{"id":"c5342392.4763b","type":"fs-file-lister","z":"69a3eb1f.9d3404","name":"","start":"C:\\temp","pattern":"test*.csv","folders":"*","hidden":true,"lstype":"files","path":true,"single":true,"depth":0,"stat":false,"showWarnings":true,"x":400,"y":340,"wires":[["ea1699f3.1754c8","6e224270.cd0b3c"]]},{"id":"4338b90e.28bd28","type":"comment","z":"69a3eb1f.9d3404","name":"Fetch new files","info":"","x":320,"y":260,"wires":[]},{"id":"ea1699f3.1754c8","type":"debug","z":"69a3eb1f.9d3404","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":610,"y":260,"wires":[]},{"id":"e27a29aa.dbe898","type":"debug","z":"69a3eb1f.9d3404","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":810,"y":460,"wires":[]},{"id":"a55c956d.93b8a8","type":"file in","z":"69a3eb1f.9d3404","name":"Fetch File","filename":"","format":"utf8","chunk":false,"sendError":false,"encoding":"utf8","x":320,"y":460,"wires":[["69f7b800.6a3728"]]},{"id":"fed36973.ed18a8","type":"csv","z":"69a3eb1f.9d3404","name":"","sep":",","hdrin":true,"hdrout":"none","multi":"mult","ret":"\\r\\n","temp":"","skip":"0","strings":true,"include_empty_strings":false,"include_null_values":false,"x":630,"y":460,"wires":[["e27a29aa.dbe898"]]},{"id":"6e224270.cd0b3c","type":"split","z":"69a3eb1f.9d3404","name":"","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"","x":570,"y":340,"wires":[["9fc72b48.961548"]]},{"id":"9fc72b48.961548","type":"change","z":"69a3eb1f.9d3404","name":"","rules":[{"t":"set","p":"filename","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":750,"y":340,"wires":[["a55c956d.93b8a8"]]},{"id":"b48a4080.c7f46","type":"comment","z":"69a3eb1f.9d3404","name":"clobber msg.parts here","info":"","x":440,"y":520,"wires":[]},{"id":"69f7b800.6a3728","type":"function","z":"69a3eb1f.9d3404","name":"","func":"var m = {\"payload\":msg.payload};\nreturn m;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":480,"y":460,"wires":[["fed36973.ed18a8"]]}]
Thanks again for taking a look.