martin wrote:
Please upgrade to the latest version first.
Hi Martin,
Thanks for the suggestion. After the upgrade to version WinSCP Version 5.9.3 (Build 7136) I am able to upload files.
However, when I try to download files I am getting the error
> 2016-12-09 11:22:41.373 Script: stat -- "test.stat"
. 2016-12-09 11:22:41.373 Listing file "test.stat".
. 2016-12-09 11:22:41.373 Retrieving file information...
> 2016-12-09 11:22:41.373 MLST /mk/test.stat
< 2016-12-09 11:22:41.482 550 File /mk/test.stat not found
. 2016-12-09 11:22:41.482 Could not retrieve file information
< 2016-12-09 11:22:41.482 Script: Can't get attributes of file 'test.stat'.
< 2016-12-09 11:22:41.482 Could not retrieve file information
< 2016-12-09 11:22:41.482 File /mk/test.stat not found
The weird thing is that first we retrieve list of files in the remote directory and it's successful, but then the download fails with the above error.
This is the log of directory listing
< 2016-12-09 11:22:35.264 150 Transferring directory
. 2016-12-09 11:22:35.264 Session ID reused
. 2016-12-09 11:22:35.264 Using TLSv1.2, cipher TLSv1/SSLv3: AES256-GCM-SHA384, 2048 bit RSA, AES256-GCM-SHA384 TLSv1.2 Kx=RSA Au=RSA Enc=AESGCM(256) Mac=AEAD
. 2016-12-09 11:22:35.264 TLS connection established
< 2016-12-09 11:22:35.373 226 Transfer completed
. 2016-12-09 11:22:35.404 Data connection closed
. 2016-12-09 11:22:35.404 size=0;type=cdir;create=20140515115117;modify=20161209112149; .
. 2016-12-09 11:22:35.404 size=0;type=pdir;create=20140514140248;modify=20140515115117; ..
[LOTS OF FILES HERE]
. 2016-12-09 11:22:35.404 size=0;type=file;create=20161209111838;modify=20161209111838; test.stat
. 2016-12-09 11:22:35.404 Directory listing successful
. 2016-12-09 11:22:35.420 ..;D;0;1899-12-30T01:00:00.000Z;0;"" [0];"" [0];---------;0
[LOTS OF FILES HERE]
. 2016-12-09 11:22:35.420 test.stat;-;0;2016-12-09T11:18:38.000Z;3;"" [0];"" [0];---------;0
< 2016-12-09 11:22:35.420 Script: D--------- 0 0 ..
[LOTS OF FILES HERE]
< 2016-12-09 11:22:35.420 Script: ---------- 0 0 Dec 9 12:18:38 2016 test.stat
> 2016-12-09 11:22:35.795 Script: exit
. 2016-12-09 11:22:35.795 Script: Exit code: 0
. 2016-12-09 11:22:35.795 Disconnected from server