We are using WinSCP for some scripting and have run into some issues with these commands:
ls /+
Results in: ls: FSUM6785 File or directory "/+" is not found
cd //-jes.intrdr
Results in: cd: //-jes.intrdr: EDC5129I No such file or directory.
It appears WinSCP doesn't like the /+ or //-. Is there some way around this?
WinSCP support of /+ and //-
Re: WinSCP support of /+ and //-
From the UI, opening directory "/+" or "//-" works fine. Do this work for you? Otherwise, you might be connecting to the IBM sftp-server rather than Co:Z SFTP server.
If the interactive commands work for you, please attach a small example of a complete failing script and the version of WinSCP that you are using and I will try to reproduce.
Note: the biggest problem with WinSCP is that it sometimes creates a new/separate SFTP session for file transfers. So if you interactively set options in the main session, but these won't be seen for the file transfer. When this happens depends on the release, the configuration, and the operation that you are doing. If you look at the Co:Z SFTP server session logs that are created, you can see this happening. One way to avoid this issue is to use pattern rules in your Co:Z cozsftp_server_config file (user or system level) so that you don't need interactive options.
If the interactive commands work for you, please attach a small example of a complete failing script and the version of WinSCP that you are using and I will try to reproduce.
Note: the biggest problem with WinSCP is that it sometimes creates a new/separate SFTP session for file transfers. So if you interactively set options in the main session, but these won't be seen for the file transfer. When this happens depends on the release, the configuration, and the operation that you are doing. If you look at the Co:Z SFTP server session logs that are created, you can see this happening. One way to avoid this issue is to use pattern rules in your Co:Z cozsftp_server_config file (user or system level) so that you don't need interactive options.