Re: Can't list files in remote server.....
The
https://winscp.net/eng/docs/scriptcommand_stat
ls
command can be used for directories only. Use stat
for files.
https://winscp.net/eng/docs/scriptcommand_stat