Ok have the flow now working
[{"id":"467354e6dd094a5f","type":"tab","label":"FTP","disabled":false,"info":"","env":[]},{"id":"693ccb5aebc659fc","type":"inject","z":"467354e6dd094a5f","name":"Get Image every 15 min","props":[{"p":"payload"}],"repeat":"900","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"domain.com/Camera","payloadType":"str","x":170,"y":60,"wires":[["31ff6b36e0b622f5"]]},{"id":"db3c92f6d1276edb","type":"debug","z":"467354e6dd094a5f","name":"Debug Output","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":880,"y":340,"wires":[]},{"id":"7a6112c6c872a215","type":"function","z":"467354e6dd094a5f","name":"Filter by modification time","func":"msg.payload = msg.payload.filter(f => f.type === '-' && f.name.endsWith('.jpg'));\nmsg.payload.sort((a, b) => b.mtime - a.mtime);\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":490,"y":320,"wires":[["f1bb984e6636c890"]]},{"id":"f1bb984e6636c890","type":"function","z":"467354e6dd094a5f","name":"Get lastest JPG","func":"msg.payload = msg.payload[0];\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":460,"y":420,"wires":[["db3c92f6d1276edb","48739aa8b805ab67"]]},{"id":"31ff6b36e0b622f5","type":"change","z":"467354e6dd094a5f","name":"Move Payload to Filename","rules":[{"t":"move","p":"payload","pt":"msg","to":"filename","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":340,"y":160,"wires":[["edb48ac579207041"]]},{"id":"48739aa8b805ab67","type":"function","z":"467354e6dd094a5f","name":"Fn add remote file path + image","func":"msg.filename = \"/domain.com/Camera/\" + msg.payload.name;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":390,"y":520,"wires":[["db3c92f6d1276edb","d5c53eae596e0b98"]]},{"id":"edb48ac579207041","type":"ftp in","z":"467354e6dd094a5f","ftp":"88b86ecb9b39502e","operation":"list","filename":"","localFilename":"","name":"List","x":430,"y":240,"wires":[["7a6112c6c872a215","db3c92f6d1276edb"]]},{"id":"d5c53eae596e0b98","type":"ftp in","z":"467354e6dd094a5f","ftp":"88b86ecb9b39502e","operation":"get","filename":"","localFilename":"/media/camera/CamImage.jpg","name":"Get latest image","x":460,"y":620,"wires":[["db3c92f6d1276edb"]]},{"id":"88b86ecb9b39502e","type":"ftp","host":"00.00.00.00","port":"21","secureOptions":"","user":"FTPuser","connTimeout":"30000","pasvTimeout":"10000","keepalive":"10000"}]