Getting the directory list after a get operation.

Advertisement

alex.mancilla@gmail.com
Joined:
Posts:
1
Location:
San Antonio, TX, USA

Getting the directory list after a get operation.

See below the log for the operation, I'm using save sessions to run schedule tasks, that runs .wsf files that perform the download of file through a winscp client
three days ago it started to perform an extra LIST -a after the get operation, not sure what changed, but I need to stop it, it makes the log file huge and unmanageable

What could be causing this?
How can I fix the command line/WinSCP configuration?
Starting DataFileImport.wsf on 7/28/2014 8:00:02 AM

currentUser: userwithpermissions
ftpSourceFileName: Inbound!SavedSession:/Blah blah-2014-07-27.csv
ftpDestinationFileName: C:\AFT\ListManagement\Files\Five9\In\Blahblah-FileName-2014-07-27.csv
Creating WinSCP Client
ftpClient.FtpToolPath: C:\Program Files\WinSCP\WinSCP.exe
Blahblah-FileName-{yyyy-mm-dd}.csv
Inbound!SavedSession:/
C:\AFT\ListManagement\Files\Five9\In\
-1

Starting the FileImportController.vbs script at 7/28/2014 8:00:02 AM
FileImportController startup

--- Calling FtpClient.RunFtp ---

commandLine: "C:\Program Files\WinSCP\WinSCP.exe" /console /log="C:\DOCUME~1\LOGGED~1\LOCALS~1\Temp\rad839D7.tmp" /script="C:\DOCUME~1\LOGGED~1\LOCALS~1\Temp\rad00545.tmp"
executing command
--- Start of Std Out ---

--- End of Std Out ---
command exit code: 0

. 2014-07-28 08:00:03.301 --------------------------------------------------------------------------
. 2014-07-28 08:00:03.301 WinSCP Version 5.5.4 (Build 4433) (OS 5.2.3790 Service Pack 1 - Microsoft Windows Server 2003 R2)
. 2014-07-28 08:00:03.301 Configuration: C:\Program Files\WinSCP\WinSCP.ini
. 2014-07-28 08:00:03.316 Local account: appServer\userwithpermissions
. 2014-07-28 08:00:03.316 Working directory: C:\Apps\Scripts\Miscellaneous
. 2014-07-28 08:00:03.316 Process ID: 5800
. 2014-07-28 08:00:03.316 Command-line: "C:\Program Files\WinSCP\WinSCP.exe" /console /log="C:\DOCUME~1\LOGGED~1\LOCALS~1\Temp\rad839D7.tmp" 
...
. 2014-07-28 08:00:07.113 Startup conversation with host finished.
< 2014-07-28 08:00:07.113 Script: Active session: [1] Inbound!Five9_Inbound
> 2014-07-28 08:00:07.113 Script: get "/Blahblah-FileName-2014-07-27.csv" "C:\AFT\ListManagement\Files\Five9\In\Blahblah-FileName-2014-07-27.csv"
. 2014-07-28 08:00:07.113 Listing file "/Blahblah-FileName-2014-07-27.csv".
. 2014-07-28 08:00:07.113 Retrieving directory listing...
> 2014-07-28 08:00:07.113 TYPE A
< 2014-07-28 08:00:07.176 200 Switching to ASCII mode.
> 2014-07-28 08:00:07.176 PASV
< 2014-07-28 08:00:07.238 227 Entering Passive Mode (198,105,200,9,39,25).
[u][b]> 2014-07-28 08:00:07.238 LIST -a[/b][/u]
< 2014-07-28 08:00:07.379 150 Here comes the directory listing.
. 2014-07-28 08:00:07.441 TLS connection established
. 2014-07-28 08:00:26.410 drwxr-xr-x    2 1001     1001     15265792 Jul 28 07:36 .
. 2014-07-28 08:00:26.410 drwxr-xr-x    2 1001     1001     15265792 Jul 28 07:36 ..
. 2014-07-28 08:00:26.410 -rw-rw----    1 1001     1001          698 Jun 29  2013 Blahblah-FileName0-2013-06-28.csv
. 2014-07-28 08:00:26.410 -rw-rw----    1 1001     1001          698 Jun 30  2013 Blahblah-FileName1-2013-06-29.csv

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,440
Location:
Prague, Czechia

Re: Getting the directory list after a get operation.

alex.mancilla@gmail.com wrote:

See below the log for the operation, I'm using save sessions to run schedule tasks, that runs .wsf files that perform the download of file through a winscp client
three days ago it started to perform an extra LIST -a after the get operation, not sure what changed, but I need to stop it, it makes the log file huge and unmanageable
It's before not after the get operation. Anyway, WinSCP always does that if the server does not support MLST command. Do you have a log file from a session before the change?

Reply with quote

Guest

Re: Getting the directory list after a get operation.

I reviewed more log files and I discovered this was using IPSwitch before, then when it was moved to WinSCP, we started observing the reported behavior, but also have other scripts that are running WinSCP and do not have this issue.
Attached bellow is one log sample.

You mention I could have something to do with the server supporting MLST, how can I find out is this particular FTP server has this issue?

thanks again

Starting LeadImport.wsf on 7/21/2014 12:00:02 PM

currentUser: aftprocess
Creating WinSCP Client
ftpClient.FtpToolPath: C:\Program Files\WinSCP\WinSCP.exe
ftpSourceFilePath: Inbound!Client:/pick/
ftpDestinationFilePath: local:
FilePathToDecrypt: C:\AFT\ClientFiles\Client\In\Filename.zip.pgp
Executing commands

commandLine: "C:\Program Files\WinSCP\WinSCP.exe" /console /log="C:\DOCUME~1\AFTPRO~1\LOCALS~1\Temp\radBA66A.tmp" /script="C:\DOCUME~1\AFTPRO~1\LOCALS~1\Temp\rad58B8C.tmp"
executing command
--- Start of Std Out ---

--- End of Std Out ---
command exit code: 0


--- Start of WinSCP Session Log ---
. 2014-07-21 12:00:03.327 --------------------------------------------------------------------------
. 2014-07-21 12:00:03.327 WinSCP Version 5.5.4 (Build 4433) (OS 5.2.3790 Service Pack 1 - Microsoft Windows Server 2003 R2)
. 2014-07-21 12:00:03.343 Configuration: C:\Program Files\WinSCP\WinSCP.ini
. 2014-07-21 12:00:03.343 Local account: TRITON\aftprocess
. 2014-07-21 12:00:03.343 Working directory: c:\CareNet_Apps\Scripts\LeadImport
. 2014-07-21 12:00:03.343 Process ID: 3180
. 2014-07-21 12:00:03.343 Command-line: "C:\Program Files\WinSCP\WinSCP.exe" /console /log="C:\DOCUME~1\AFTPRO~1\LOCALS~1\Temp\radBA66A.tmp" /script="C:\DOCUME~1\AFTPRO~1\LOCALS~1\Temp\rad58B8C.tmp"
. 2014-07-21 12:00:03.343 Time zone: Current: GMT-5, Standard: GMT-6 (Central Standard Time), DST: GMT-5 (Central Daylight Time), DST Start: 3/9/2014, DST End: 11/2/2014
. 2014-07-21 12:00:03.343 Login time: Monday, July 21, 2014 12:00:03 PM
. 2014-07-21 12:00:03.343 --------------------------------------------------------------------------
. 2014-07-21 12:00:03.343 Script: Retrospectively logging previous script records:
> 2014-07-21 12:00:03.343 Script: option batch abort
< 2014-07-21 12:00:03.343 Script: batch           abort     
> 2014-07-21 12:00:03.343 Script: option confirm off
< 2014-07-21 12:00:03.343 Script: confirm         off       
> 2014-07-21 12:00:03.343 Script: open Inbound!Client
. 2014-07-21 12:00:03.343 --------------------------------------------------------------------------
. 2014-07-21 12:00:03.343 Session name: Inbound!Client (Site)
. 2014-07-21 12:00:03.343 Host name: afts.Client.com (Port: 22)
. 2014-07-21 12:00:03.343 User name: Carenet01 (Password: Yes, Key file: No)
. 2014-07-21 12:00:03.343 Tunnel: No
. 2014-07-21 12:00:03.343 Transfer Protocol: SFTP (SCP)
. 2014-07-21 12:00:03.343 Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. 2014-07-21 12:00:03.343 Proxy: none
. 2014-07-21 12:00:03.343 Send buffer: 262144
. 2014-07-21 12:00:03.343 SSH protocol version: 2; Compression: No
. 2014-07-21 12:00:03.343 Bypass authentication: No
. 2014-07-21 12:00:03.343 Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
. 2014-07-21 12:00:03.343 Ciphers: aes,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
. 2014-07-21 12:00:03.343 SSH Bugs: A,A,A,A,A,A,A,A,A,A
. 2014-07-21 12:00:03.343 Simple channel: Yes
. 2014-07-21 12:00:03.343 Return code variable: Autodetect; Lookup user groups: A
. 2014-07-21 12:00:03.343 Shell: default
. 2014-07-21 12:00:03.343 EOL: 0, UTF: 2
. 2014-07-21 12:00:03.343 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. 2014-07-21 12:00:03.343 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No
. 2014-07-21 12:00:03.343 SFTP Bugs: A,A
. 2014-07-21 12:00:03.343 SFTP Server: default
. 2014-07-21 12:00:03.343 Local directory: C:\AFT\ClientFiles\Client\In, Remote directory: /pick, Update: Yes, Cache: Yes
. 2014-07-21 12:00:03.343 Cache directory changes: Yes, Permanent: Yes
. 2014-07-21 12:00:03.343 DST mode: 1; Timezone offset: 0h 0m
. 2014-07-21 12:00:03.343 --------------------------------------------------------------------------
. 2014-07-21 12:00:03.343 Looking up host "afts.Client.com"
. 2014-07-21 12:00:03.499 Connecting to 198.245.32.76 port 22
. 2014-07-21 12:00:03.624 Server version: SSH-2.0-XXXXXX Client AFT
. 2014-07-21 12:00:03.624 Using SSH protocol version 2
. 2014-07-21 12:00:03.624 We claim version: SSH-2.0-WinSCP_release_5.5.4
. 2014-07-21 12:00:03.686 Doing Diffie-Hellman group exchange
. 2014-07-21 12:00:03.827 Doing Diffie-Hellman key exchange with hash SHA-1
. 2014-07-21 12:00:05.046 Verifying host key rsa2 0x11,0xc2023e8c8a99da23 0a318193bade21b8 40f641796eca8d8e 5495c08174125b18 afbea8da80f97d21 afb715774c72cfc1 6895f202f56037f8 1c929c0380faf54c 7f5818cda89f8341 edd23e8732210cfb 45b704a2aaa5f471 73ad4dea6c0e4f0c c9c0a546a073fa06 d3750860abee7246 ef56ab8f7b14713a 983236500dac8b71 0bf06a413bfcbbe9 8e5dbbbcf6a3b51c 8360da7193a0de44 9b30d34c80fdfd36 e1b00442ab99c2b9 e7a3999455d9837c ff37d433ebbcdb3c d2470b42e276b47a e0d03c8198fe4458 e153a41a97861634 e25f1fcbdf6b4e44 f4342e5ee384b222 074c2383b0d49604 59d448ecae823696 c0eabd86385d6743 aa6356163724a8f7  with fingerprint ssh-rsa 2048 59:80:dc:36:bd:a1:02:cb:ac:3c:35:21:5f:cd:d3:ce
. 2014-07-21 12:00:05.046 Host key matches cached key
. 2014-07-21 12:00:05.046 Host key fingerprint is:
. 2014-07-21 12:00:05.046 ssh-rsa 2048 59:80:dc:36:bd:a1:02:cb:ac:3c:35:21:5f:cd:d3:ce
. 2014-07-21 12:00:05.046 Initialised AES-256 CBC client->server encryption
. 2014-07-21 12:00:05.046 Initialised HMAC-SHA1 client->server MAC algorithm
. 2014-07-21 12:00:05.046 Initialised AES-256 CBC server->client encryption
. 2014-07-21 12:00:05.046 Initialised HMAC-SHA1 server->client MAC algorithm
! 2014-07-21 12:00:05.218 Using username "username".
. 2014-07-21 12:00:05.296 Attempting keyboard-interactive authentication
. 2014-07-21 12:00:05.343 Prompt (6, SSH server authentication, Using keyboard-interactive authentication., Enter password: )
. 2014-07-21 12:00:05.343 Using stored password.
. 2014-07-21 12:00:05.421 Access granted
. 2014-07-21 12:00:05.421 Opening session as main channel
. 2014-07-21 12:00:05.483 Opened main channel
. 2014-07-21 12:00:05.640 Started a shell/command
. 2014-07-21 12:00:05.640 --------------------------------------------------------------------------
. 2014-07-21 12:00:05.640 Using SFTP protocol.
. 2014-07-21 12:00:05.640 Doing startup conversation with host.
> 2014-07-21 12:00:05.640 Type: SSH_FXP_INIT, Size: 5, Number: -1
< 2014-07-21 12:00:05.702 Type: SSH_FXP_VERSION, Size: 5, Number: -1
. 2014-07-21 12:00:05.702 SFTP version 3 negotiated.
. 2014-07-21 12:00:05.702 We believe the server has signed timestamps bug
. 2014-07-21 12:00:05.702 We will use UTF-8 strings when appropriate
. 2014-07-21 12:00:05.702 Changing directory to "/pick".
. 2014-07-21 12:00:05.702 Getting real path for '/pick'
> 2014-07-21 12:00:05.702 Type: SSH_FXP_REALPATH, Size: 14, Number: 16
< 2014-07-21 12:00:05.765 Type: SSH_FXP_NAME, Size: 31, Number: 16
. 2014-07-21 12:00:05.765 Real path is '/pick'
. 2014-07-21 12:00:05.765 Trying to open directory "/pick".
> 2014-07-21 12:00:05.765 Type: SSH_FXP_LSTAT, Size: 14, Number: 263
< 2014-07-21 12:00:05.827 Type: SSH_FXP_ATTRS, Size: 21, Number: 263
. 2014-07-21 12:00:05.827 Getting current directory name.
. 2014-07-21 12:00:05.827 Startup conversation with host finished.
< 2014-07-21 12:00:05.827 Script: Active session: [1] Inbound!Client
> 2014-07-21 12:00:05.827 Script: get "/pick/Filename.zip.pgp" "C:\AFT\ClientFiles\Client\In\"
. 2014-07-21 12:00:05.827 Listing file "/pick/Filename.zip.pgp".
> 2014-07-21 12:00:05.827 Type: SSH_FXP_LSTAT, Size: 44, Number: 519
< 2014-07-21 12:00:05.905 Type: SSH_FXP_ATTRS, Size: 29, Number: 519
. 2014-07-21 12:00:05.905 Filename.zip.pgp;-;43270;2014-07-21T13:12:40.000Z;"" [0];"" [0];rw-rw-rw-;1
. 2014-07-21 12:00:05.921 File: '/pick/Filename.zip.pgp' [2014-07-21T13:12:40.000Z] [43270]
. 2014-07-21 12:00:05.921 Copying "/pick/Filename.zip.pgp" to local directory started.
. 2014-07-21 12:00:05.921 Binary transfer mode selected.
. 2014-07-21 12:00:05.921 Opening remote file.
> 2014-07-21 12:00:05.921 Type: SSH_FXP_OPEN, Size: 52, Number: 771
< 2014-07-21 12:00:05.983 Type: SSH_FXP_HANDLE, Size: 10, Number: 771
> 2014-07-21 12:00:05.983 Type: SSH_FXP_FSTAT, Size: 10, Number: 1032
< 2014-07-21 12:00:06.046 Type: SSH_FXP_ATTRS, Size: 29, Number: 1032
. 2014-07-21 12:00:06.046 Confirming overwriting of file.
> 2014-07-21 12:00:06.046 Type: SSH_FXP_READ, Size: 22, Number: 1285
< 2014-07-21 12:00:06.374 Status code: 1
. 2014-07-21 12:00:06.374 18 skipped SSH_FXP_WRITE, SSH_FXP_READ, SSH_FXP_DATA and SSH_FXP_STATUS packets.
> 2014-07-21 12:00:06.374 Type: SSH_FXP_CLOSE, Size: 10, Number: 4100
< 2014-07-21 12:00:06.421 Type: SSH_FXP_STATUS, Size: 22, Number: 3333
< 2014-07-21 12:00:06.421 Type: SSH_FXP_STATUS, Size: 22, Number: 3589
< 2014-07-21 12:00:06.515 Type: SSH_FXP_STATUS, Size: 22, Number: 3845
> 2014-07-21 12:00:06.561 Script: exit
. 2014-07-21 12:00:06.561 Script: Exit code: 0
. 2014-07-21 12:00:06.561 Closing connection.
. 2014-07-21 12:00:06.561 Sending special code: 12
. 2014-07-21 12:00:06.561 Sent EOF message

--- End of WS WinSCP Session Log ---

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,440
Location:
Prague, Czechia

Re: Getting the directory list after a get operation.

Anonymous wrote:

but also have other scripts that are running WinSCP and do not have this issue.
Attached bellow is one log sample.
It's SFTP session, not FTP. With SFTP, the problem never occurs.

You mention I could have something to do with the server supporting MLST, how can I find out is this particular FTP server has this issue?
In the FTP session log, you will see WinSCP asking server to list it's features with FEAT command. If the list includes MLSD line, it means the server supports MLSD and MLST commands. Most servers nowadays do. MLST has been proposed back in 2007.

For example:
> 2014-07-31 18:17:02.275 FEAT
< 2014-07-31 18:17:02.275 211-Features:
< 2014-07-31 18:17:02.275 MDTM
< 2014-07-31 18:17:02.275 REST STREAM
< 2014-07-31 18:17:02.275 SIZE
< 2014-07-31 18:17:02.275 MLST type*;size*;modify*;
< 2014-07-31 18:17:02.275 MLSD
< 2014-07-31 18:17:02.275 AUTH SSL
< 2014-07-31 18:17:02.275 AUTH TLS
< 2014-07-31 18:17:02.275 PROT
< 2014-07-31 18:17:02.276 PBSZ
< 2014-07-31 18:17:02.276 UTF8
< 2014-07-31 18:17:02.276 CLNT
< 2014-07-31 18:17:02.276 MFMT
< 2014-07-31 18:17:02.276 211 End

Reply with quote

Guest

Re: Getting the directory list after a get operation.

With even more research I found a log file when we were using WinSCP , for this very same process, it seems to be back and forth between IPswitch and WinSCP.
Here is a pieces of the log file:
Starting FiveNineLeadDataFileImport.wsf on 5/9/2014 8:00:01 AM

currentUser: loggedinuser
ftpSourceFileName: Inbound!Profile_Inbound:/BlahBlahFilename-2014-05-08.csv
ftpDestinationFileName: C:\Localpath\BlahBlaFilename-2014-05-08.csv
Creating WinSCP Client
ftpClient.FtpToolPath: C:\Program Files\WinSCP\WinSCP.exe
BlahBlahFilename-{yyyy-mm-dd}.csv
Inbound!Profile_Inbound:/
C:\Localpath\
-1

Starting the FileImportController.vbs script at 5/9/2014 8:00:02 AM
FileImportController startup

--- Calling FtpClient.RunFtp ---

commandLine: "C:\Program Files\WinSCP\WinSCP.exe" /console /log="C:\DOCUME~1\LOGGED~1\LOCALS~1\Temp\radACE42.tmp" /script="C:\DOCUME~1\LOGGED~1\LOCALS~1\Temp\rad0CF72.tmp"
executing command
--- Start of Std Out ---

--- End of Std Out ---
command exit code: 0


--- Start of WinSCP Session Log ---
. 2014-05-09 08:00:02.736 --------------------------------------------------------------------------
. 2014-05-09 08:00:02.736 WinSCP Version 4.3.8 (Build 1771) (OS 5.2.3790 Service Pack 1)
. 2014-05-09 08:00:02.752 Configuration: C:\Program Files\WinSCP\WinSCP.ini
. 2014-05-09 08:00:02.752 Local account: Server\userWithPermissionsFTP
. 2014-05-09 08:00:02.752 Login time: Friday, May 09, 2014 8:00:02 AM
. 2014-05-09 08:00:02.752 --------------------------------------------------------------------------
. 2014-05-09 08:00:02.752 Session name: Inbound!Profile_Inbound (Stored session)
. 2014-05-09 08:00:02.752 Host name: ftp-RemoteServer.com (Port: 21)
. 2014-05-09 08:00:02.752 User name: ValidUserName (Password: Yes, Key file: No)
. 2014-05-09 08:00:02.752 Tunnel: No
. 2014-05-09 08:00:02.752 Transfer Protocol: FTP
. 2014-05-09 08:00:02.752 Ping type: C, Ping interval: 30 sec; Timeout: 70 sec
. 2014-05-09 08:00:02.752 Proxy: none
. 2014-05-09 08:00:02.752 FTP: FTPS: Explicit SSL; Passive: Yes [Force IP: No]
. 2014-05-09 08:00:02.752 Local directory: default, Remote directory: home, Update: No, Cache: Yes
. 2014-05-09 08:00:02.752 Cache directory changes: Yes, Permanent: Yes
. 2014-05-09 08:00:02.752 DST mode: 1
. 2014-05-09 08:00:02.752 --------------------------------------------------------------------------
. 2014-05-09 08:00:02.846 Connecting to ftp-RemoteServer.com ...
. 2014-05-09 08:00:03.033 Connected with ftp-RemoteServer.com, negotiating SSL connection...
< 2014-05-09 08:00:03.080 220 (vsFTPd 2.2.2)
> 2014-05-09 08:00:03.080 AUTH SSL
< 2014-05-09 08:00:03.143 234 Proceed with negotiation.
. 2014-05-09 08:00:03.690 SSL connection established. Waiting for welcome message...
> 2014-05-09 08:00:03.690 USER CareNet
< 2014-05-09 08:00:03.752 331 Please specify the password.
> 2014-05-09 08:00:03.752 PASS ********
< 2014-05-09 08:00:03.940 230 Login successful.
> 2014-05-09 08:00:03.940 SYST
< 2014-05-09 08:00:03.986 215 UNIX Type: L8
> 2014-05-09 08:00:03.986 FEAT
< 2014-05-09 08:00:04.049 211-Features:
< 2014-05-09 08:00:04.049  AUTH SSL
< 2014-05-09 08:00:04.049  AUTH TLS
< 2014-05-09 08:00:04.049  EPRT
< 2014-05-09 08:00:04.049  EPSV
< 2014-05-09 08:00:04.096  MDTM
< 2014-05-09 08:00:04.096  PASV
< 2014-05-09 08:00:04.096  PBSZ
< 2014-05-09 08:00:04.096  PROT
< 2014-05-09 08:00:04.096  REST STREAM
< 2014-05-09 08:00:04.096  SIZE
< 2014-05-09 08:00:04.096  TVFS
< 2014-05-09 08:00:04.096  UTF8
< 2014-05-09 08:00:04.096 211 End
> 2014-05-09 08:00:04.096 OPTS UTF8 ON
< 2014-05-09 08:00:04.143 200 Always in UTF8 mode.
> 2014-05-09 08:00:04.143 PBSZ 0
< 2014-05-09 08:00:04.205 200 PBSZ set to 0.
> 2014-05-09 08:00:04.205 PROT P
< 2014-05-09 08:00:04.252 200 PROT now Private.
. 2014-05-09 08:00:04.252 Connected
. 2014-05-09 08:00:04.252 --------------------------------------------------------------------------
. 2014-05-09 08:00:04.252 Using FTP protocol.
. 2014-05-09 08:00:04.268 Doing startup conversation with host.
> 2014-05-09 08:00:04.268 PWD
< 2014-05-09 08:00:04.315 257 "/"
. 2014-05-09 08:00:04.315 Getting current directory name.
. 2014-05-09 08:00:04.315 Startup conversation with host finished.
< 2014-05-09 08:00:04.315 Script: Active session: [1] Inbound!Profile_Inbound
> 2014-05-09 08:00:04.315 Script: get "/BlahBlahFilename-2014-05-08.csv" "C:\Localpath\BlahBlahFilename-2014-05-08.csv"
. 2014-05-09 08:00:04.330 Listing file "/BlahBlahFilename-2014-05-08.csv".
. 2014-05-09 08:00:04.330 Retrieving directory listing...
> 2014-05-09 08:00:04.346 TYPE A
< 2014-05-09 08:00:04.393 200 Switching to ASCII mode.
> 2014-05-09 08:00:04.393 PASV
< 2014-05-09 08:00:04.455 227 Entering Passive Mode (198,105,200,9,39,110).
> 2014-05-09 08:00:04.455 LIST -a
< 2014-05-09 08:00:04.549 150 Here comes the directory listing.
. 2014-05-09 08:00:04.565 SSL connection established
< 2014-05-09 08:00:20.268 226 Directory send OK.
. 2014-05-09 08:00:20.268 Directory listing successful
. 2014-05-09 08:00:25.768 File: "/BlahBlahFilename-2014-05-08.csv"
. 2014-05-09 08:00:25.768 Copying "/BlahBlahFilename-2014-05-08.csv" to local directory started.
. 2014-05-09 08:00:25.768 Binary transfer mode selected.
. 2014-05-09 08:00:25.861 Starting download of /BlahBlahFilename-2014-05-08.csv
> 2014-05-09 08:00:25.940 TYPE I
< 2014-05-09 08:00:25.986 200 Switching to Binary mode.
> 2014-05-09 08:00:25.986 PASV
< 2014-05-09 08:00:26.049 227 Entering Passive Mode (198,105,200,9,39,69).
> 2014-05-09 08:00:26.205 RETR BlahBlahFilename-2014-05-08.csv
< 2014-05-09 08:00:26.315 150 Opening BINARY mode data connection for BlahBlahFilename-2014-05-08.csv (643 bytes).
. 2014-05-09 08:00:26.861 SSL connection established
< 2014-05-09 08:00:27.330 226 Transfer complete.
. 2014-05-09 08:00:27.361 Download successful
> 2014-05-09 08:00:27.361 Script: exit
. 2014-05-09 08:00:27.361 Script: Exit code: 0
. 2014-05-09 08:00:27.877 Disconnected from server

--- End of WS WinSCP Session Log ---

--- Returning from FtpClient.RunFtp ---

file transfer of:Inbound!Profile_Inbound:/BlahBlahFilename-2014-05-08.csv succeeded

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,440
Location:
Prague, Czechia

Re: Getting the directory list after a get operation.

With even more research I found a log file when we were using WinSCP, for this very same process, it seems to be back and forth between IPswitch and WinSCP
here is a pieces of the log file
...
You were using an older version of WinSCP back then, that was not logging directory listing yet.

Reply with quote

Guest

Re: Getting the directory list after a get operation.

OK, so, if I understand correctly, this is what could have happened, when the WinSCP was upgraded it started logging the directory listing, since the server most like does not support MLST it is getting this huge list of files from within the remote folder. It was not happening before because the older version of WinSCP was not logging the directory list. Good, I can explain it, now how can I fix it? Those huge files are taking a lot of disk space

Reply with quote

Advertisement

You can post new topics in this forum