Return result of LS in exec command
I'm using the [m]ls[m] command to retrieve a list of files from a remote folder but the I can't get the result to output in the console.
Ultimately I would like to run this from within Node-Red and have the list as an array.
"C:\Program Files (x86)\WinSCP\WinSCP.exe" /log="C:\Temp\WinSCP.log" /ini=nul /command "open sftp://user:12345@sftp.site.com/ -hostkey=""ssh-rsa 2048 stX..........""" "ls /folder/sub_folder" "exit"