Problems with SFTP and empty directories
https://winscp.net/tracker/706
When loggin in to a FTP server with an empty directory, i get the below.
. 2013-08-12 17:00:16.024 --------------------------------------------------------------------------
. 2013-08-12 17:00:16.040 Connecting to XXX ...
. 2013-08-12 17:00:16.071 Connected with XXX, negotiating SSL connection...
< 2013-08-12 17:00:16.071 XXX. Welcome
> 2013-08-12 17:00:16.071 AUTH SSL
< 2013-08-12 17:00:16.118 234 AUTH Command OK. Initializing SSL connection.
. 2013-08-12 17:00:16.649 SSL connection established. Waiting for welcome message...
> 2013-08-12 17:00:16.649 USER XXX
< 2013-08-12 17:00:16.665 331 Password required for XXX.
> 2013-08-12 17:00:16.665 PASS **********
< 2013-08-12 17:00:16.681 230 Login OK. Proceed.
> 2013-08-12 17:00:16.681 SYST
< 2013-08-12 17:00:16.681 215 UNIX Type: L8
> 2013-08-12 17:00:16.681 FEAT
< 2013-08-12 17:00:16.696 211-Features supported:
< 2013-08-12 17:00:16.696 COMB target;source_list
< 2013-08-12 17:00:16.696 REST STREAM
< 2013-08-12 17:00:16.696 SIZE
< 2013-08-12 17:00:16.696 MDTM
< 2013-08-12 17:00:16.696 XCRC filename;start;end
< 2013-08-12 17:00:16.696 SSCN
< 2013-08-12 17:00:16.696 MLST Size*;Modify*;Create;Type*;Unique;Perm*;Lang;Media-Type;CharSet;
< 2013-08-12 17:00:16.696 MODE Z
< 2013-08-12 17:00:16.696 XNOP
< 2013-08-12 17:00:16.696 211 END
> 2013-08-12 17:00:16.696 PBSZ 0
< 2013-08-12 17:00:16.696 200 PBSZ Command OK. Protection buffer size set to 0.
> 2013-08-12 17:00:16.696 PROT P
< 2013-08-12 17:00:16.712 200 PROT Command OK. Using Private data connection
. 2013-08-12 17:00:16.712 Connected
. 2013-08-12 17:00:16.712 --------------------------------------------------------------------------
. 2013-08-12 17:00:16.712 Using FTP protocol.
. 2013-08-12 17:00:16.712 Doing startup conversation with host.
> 2013-08-12 17:00:16.712 PWD
< 2013-08-12 17:00:16.728 257 "/" is current folder.
. 2013-08-12 17:00:16.728 Getting current directory name.
. 2013-08-12 17:00:16.728 Startup conversation with host finished.
< 2013-08-12 17:00:16.728 Script: Active session: [1] XXX
> 2013-08-12 17:00:16.728 Script: option transfer binary
< 2013-08-12 17:00:16.728 Script: transfer binary
> 2013-08-12 17:00:16.728 Script: option batch abort
< 2013-08-12 17:00:16.728 Script: batch abort
> 2013-08-12 17:00:16.728 Script: option confirm off
< 2013-08-12 17:00:16.728 Script: confirm off
> 2013-08-12 17:00:16.728 Script: lcd f:\XXX
< 2013-08-12 17:00:16.728 Script: f:\XXX
> 2013-08-12 19:00:43.092 Script: get A* -delete
. 2013-08-12 19:00:43.092 Retrieving directory listing...
> 2013-08-12 19:00:43.092 TYPE A
< 2013-08-12 19:00:43.092 200 Type set to A.
> 2013-08-12 19:00:43.092 PASV
< 2013-08-12 19:00:43.124 227 Entering Passive Mode (212,130,240,223,109,96).
. 2013-08-12 19:00:43.124 Error retrieving server address, cannot test if address is routable
> 2013-08-12 19:00:43.124 MLSD
< 2013-08-12 19:00:43.155 150 Opening BINARY mode data connection for MLSD /.
. 2013-08-12 19:00:43.171 SSL connection established
. 2013-08-12 19:00:43.186 Could not retrieve directory listing
< 2013-08-12 19:00:43.264 226 Transfer complete. 0 bytes transferred. 0 bps.
. 2013-08-12 19:00:43.264 Asking user:
. 2013-08-12 19:00:43.264 Error listing directory '/'. ("Error retrieving server address, cannot test if address is routable","Could not retrieve directory listing","Transfer complete. 0 bytes transferred. 0 bps.")
< 2013-08-12 19:00:43.264 Script: Error listing directory '/'.
< 2013-08-12 19:00:43.264 Script: Error retrieving server address, cannot test if address is routable
< 2013-08-12 19:00:43.264 Could not retrieve directory listing
< 2013-08-12 19:00:43.264 Transfer complete. 0 bytes transferred. 0 bps.
. 2013-08-12 19:00:43.264 Script: Failed
. 2013-08-12 19:00:43.264 Script: Exit code: 1
. 2013-08-12 19:00:43.264 Disconnected from server
With files there it works fine... This is across several FTP servers
Any ideas???
regards,
Jesper