Re: Script with ls followed by an individual file name gives an error
Because "listing a file" is not supported.
The argument of the
https://winscp.net/eng/docs/scriptcommand_ls
If you want to retrieve properties of a single file, use the
https://winscp.net/eng/docs/scriptcommand_stat
The argument of the
ls
command has to be a path to a directory, optionally followed by a wildcard:
https://winscp.net/eng/docs/scriptcommand_ls
If you want to retrieve properties of a single file, use the
stat
command:
https://winscp.net/eng/docs/scriptcommand_stat