WinSCP-5.21.3-Portable ignoring filemask size

Advertisement

joks
Joined:
Posts:
6
Location:
Poland

WinSCP-5.21.3-Portable ignoring filemask size

Hello in my script I have filemask to download only files of a certain size
get -delete -transfer=ascii *.csv -filemask=<=2K
In previous version 5.21.1-Portable it was worked and larger files were not downloaded.
After update to new version WinSCP-5.21.3-Portable all *.csv files are downloaded
no matter what size they are.
For now, I can only go back to the previous working version.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,735
Location:
Prague, Czechia

Re: WinSCP-5.21.3-Portable ignoring filemask size

I've just tested your exact command and it works for me. Though it might be protocol specific. What protocol are you using? Please attach a full session log files from both versions of WinSCP.

To generate the session log file, use /log=C:\path\to\winscp.log command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.

Reply with quote

joks
Joined:
Posts:
6
Location:
Poland

I use FTP protocol with free ftpupload.net account (they use Pure-FTPd server)
full log from the connection where file name test.csv with size over 800kb was downloaded. previous WinSCP version behaves correctly and skips a large file.
I hide username and IP address in logs.
. 2022-09-29 04:10:00.763 WinSCP Version 5.21.3 (Build 12800 2022-09-06) (OS 10.0.17763 - Windows Server 2019 Datacenter)
. 2022-09-29 04:10:00.763 Configuration: nul
. 2022-09-29 04:10:00.763 Log level: Normal
. 2022-09-29 04:10:00.763 Local account: SERVER\Administrator
. 2022-09-29 04:10:00.763 Working directory: C:\Windows\system32
. 2022-09-29 04:10:00.763 Process ID: 4424
. 2022-09-29 04:10:00.767 Ancestor processes: WinSCP, cmd, ...
. 2022-09-29 04:10:00.768 Command-line: "C:\Users\Administrator\Documents\winscp\WinSCP.exe" /console=5.21.3 /consoleinstance=_3612_91 "/log=C:\Users\Administrator\Documents\winscp\winscplog.log" "/ini=nul" "/command" "open ftp://***:***@ftpupload.net:21" "lcd C:\Users\Administrator\Documents\winscp\downloadfiles" "cd /htdocs/filestodownload" "get -delete -transfer=ascii *.csv" "close" "exit"
. 2022-09-29 04:10:00.768 Time zone: Current: GMT+2, Standard: GMT+1 (Środkowoeuropejski czas stand.), DST: GMT+2 (Środkowoeuropejski czas letni), DST Start: 27.03.2022, DST End: 30.10.2022
. 2022-09-29 04:10:00.768 Login time: czwartek, 29 wrzesień 2022 04:10:00
. 2022-09-29 04:10:00.768 --------------------------------------------------------------------------
. 2022-09-29 04:10:00.768 Script: Retrospectively logging previous script records:
> 2022-09-29 04:10:00.768 Script: open ftp://***:***@ftpupload.net:21
. 2022-09-29 04:10:00.768 --------------------------------------------------------------------------
. 2022-09-29 04:10:00.768 Session name: ***@ftpupload.net (Ad-Hoc site)
. 2022-09-29 04:10:00.768 Host name: ftpupload.net (Port: 21)
. 2022-09-29 04:10:00.768 User name: *** (Password: Yes, Key file: No, Passphrase: No)
. 2022-09-29 04:10:00.768 Transfer Protocol: FTP
. 2022-09-29 04:10:00.768 Ping type: Dummy, Ping interval: 30 sec; Timeout: 15 sec
. 2022-09-29 04:10:00.768 Disable Nagle: No
. 2022-09-29 04:10:00.768 Proxy: None
. 2022-09-29 04:10:00.768 Send buffer: 262144
. 2022-09-29 04:10:00.768 UTF: Auto
. 2022-09-29 04:10:00.768 FTPS: None [Client certificate: No]
. 2022-09-29 04:10:00.768 FTP: Passive: Yes [Force IP: Auto]; MLSD: Auto [List all: Auto]; HOST: Auto
. 2022-09-29 04:10:00.768 Local directory: default, Remote directory: home, Update: Yes, Cache: Yes
. 2022-09-29 04:10:00.769 Cache directory changes: Yes, Permanent: Yes
. 2022-09-29 04:10:00.769 Recycle bin: Delete to: No, Overwritten to: No, Bin path: 
. 2022-09-29 04:10:00.769 Timezone offset: 0h 0m
. 2022-09-29 04:10:00.769 --------------------------------------------------------------------------
< 2022-09-29 04:10:00.794 Script: Connecting to ftpupload.net ...
. 2022-09-29 04:10:00.796 Connecting to ftpupload.net ...
. 2022-09-29 04:10:00.836 Connected with ftpupload.net. Waiting for welcome message...
< 2022-09-29 04:10:00.873 220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
< 2022-09-29 04:10:00.874 220-You are user number 320 of 6900 allowed.
< 2022-09-29 04:10:00.874 220-Local time is now 21:39. Server port: 21.
< 2022-09-29 04:10:00.874 220-This is a private system - No anonymous login
< 2022-09-29 04:10:00.874 220 You will be disconnected after 60 seconds of inactivity.
> 2022-09-29 04:10:00.874 USER ***
< 2022-09-29 04:10:00.912 331 User *** OK. Password required
> 2022-09-29 04:10:00.912 PASS **********
< 2022-09-29 04:10:01.002 230-Your bandwidth usage is restricted
< 2022-09-29 04:10:01.002 230 OK. Current restricted directory is /
> 2022-09-29 04:10:01.002 SYST
< 2022-09-29 04:10:01.039 215 UNIX Type: L8
> 2022-09-29 04:10:01.039 FEAT
< 2022-09-29 04:10:01.078 211-Extensions supported:
< 2022-09-29 04:10:01.078  EPRT
< 2022-09-29 04:10:01.078  IDLE
< 2022-09-29 04:10:01.078  MDTM
< 2022-09-29 04:10:01.079  SIZE
< 2022-09-29 04:10:01.079  REST STREAM
< 2022-09-29 04:10:01.079  MLST type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*;
< 2022-09-29 04:10:01.079  MLSD
< 2022-09-29 04:10:01.079  AUTH TLS
< 2022-09-29 04:10:01.079  PBSZ
< 2022-09-29 04:10:01.079  PROT
< 2022-09-29 04:10:01.079  UTF8
< 2022-09-29 04:10:01.079  ESTA
< 2022-09-29 04:10:01.079  PASV
< 2022-09-29 04:10:01.079  EPSV
< 2022-09-29 04:10:01.079  SPSV
< 2022-09-29 04:10:01.079  ESTP
< 2022-09-29 04:10:01.079 211 End.
> 2022-09-29 04:10:01.079 OPTS UTF8 ON
< 2022-09-29 04:10:01.117 200 OK, UTF-8 enabled
< 2022-09-29 04:10:01.117 Script: Connected
. 2022-09-29 04:10:01.117 Connected
. 2022-09-29 04:10:01.124 --------------------------------------------------------------------------
. 2022-09-29 04:10:01.124 Using FTP protocol.
. 2022-09-29 04:10:01.127 Doing startup conversation with host.
< 2022-09-29 04:10:01.127 Script: Starting the session...
> 2022-09-29 04:10:01.127 PWD
< 2022-09-29 04:10:01.164 257 "/" is your current location
. 2022-09-29 04:10:01.165 Getting current directory name.
. 2022-09-29 04:10:01.165 Startup conversation with host finished.
< 2022-09-29 04:10:01.165 Script: Session started.
< 2022-09-29 04:10:01.165 Script: Active session: [1] ***@ftpupload.net
> 2022-09-29 04:10:01.165 Script: lcd C:\Users\Administrator\Documents\winscp\downloadfiles
< 2022-09-29 04:10:01.166 Script: C:\Users\Administrator\Documents\winscp\downloadfiles
> 2022-09-29 04:10:01.166 Script: cd /htdocs/filestodownload
. 2022-09-29 04:10:01.166 Changing directory to "/htdocs/filestodownload".
> 2022-09-29 04:10:01.166 CWD /htdocs/filestodownload
< 2022-09-29 04:10:01.205 250 OK. Current directory is /htdocs/filestodownload
. 2022-09-29 04:10:01.205 Getting current directory name.
> 2022-09-29 04:10:01.205 PWD
< 2022-09-29 04:10:01.244 257 "/htdocs/filestodownload" is your current location
< 2022-09-29 04:10:01.244 Script: /htdocs/filestodownload
> 2022-09-29 04:10:01.244 Script: get -delete -transfer=ascii *.csv
. 2022-09-29 04:10:01.246 Retrieving directory listing...
> 2022-09-29 04:10:01.246 TYPE A
< 2022-09-29 04:10:01.283 200 TYPE is now ASCII
> 2022-09-29 04:10:01.285 PASV
< 2022-09-29 04:10:01.324 227 Entering Passive Mode (*,*,*,*,165,251)
> 2022-09-29 04:10:01.324 MLSD
. 2022-09-29 04:10:01.324 Connecting to *.*.*.*:42491 ...
< 2022-09-29 04:10:01.399 150 Accepted data connection
. 2022-09-29 04:10:01.404 type=cdir;sizd=4096;modify=20220929020306;UNIX.mode=0755;UNIX.uid=28843827;UNIX.gid=28843827;unique=19g1837eeb38; .
. 2022-09-29 04:10:01.404 type=pdir;sizd=31;modify=20220520135021;UNIX.mode=0755;UNIX.uid=28843827;UNIX.gid=28843827;unique=19gd00a5ba2d; ..
. 2022-09-29 04:10:01.405 type=file;size=819958;modify=20220929020310;UNIX.mode=0644;UNIX.uid=28843827;UNIX.gid=28843827;unique=19g1829a0540; test.csv
. 2022-09-29 04:10:01.405 Data connection closed
< 2022-09-29 04:10:01.405 226-Options: -a -l 
< 2022-09-29 04:10:01.405 226 6 matches total
. 2022-09-29 04:10:01.405 Directory listing successful
. 2022-09-29 04:10:01.407 ..;D;0;1899-12-30T01:00:00.000Z;0;"" [0];"" [0];---------;0
. 2022-09-29 04:10:01.407 test.csv;-;819958;2022-09-29T02:03:10.000Z;4;"28843827" [0];"28843827" [0];rw-r--r--;0
. 2022-09-29 04:10:01.412 Copying 1 files/directories to local directory "C:\Users\Administrator\Documents\winscp\downloadfiles" - total size: 819 958
. 2022-09-29 04:10:01.412   PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 0100; Resume: S (102400); CalcS: No; Mask: 
. 2022-09-29 04:10:01.412   TM: A; ClAr: No; RemEOF: No; RemBOM: No; CPS: 0; NewerOnly: No; EncryptNewFiles: Yes; ExcludeHiddenFiles: No; ExcludeEmptyDirectories: No; InclM: ; ResumeL: 0
. 2022-09-29 04:10:01.412   AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; *.js; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
. 2022-09-29 04:10:01.413 File: '/htdocs/filestodownload/test.csv' [2022-09-29T02:03:10.000Z] [819958]
. 2022-09-29 04:10:01.414 Copying "/htdocs/filestodownload/test.csv" to local directory started.
. 2022-09-29 04:10:01.414 Ascii transfer mode selected.
. 2022-09-29 04:10:01.415 Starting download of /htdocs/filestodownload/test.csv
> 2022-09-29 04:10:01.416 TYPE A
< 2022-09-29 04:10:01.454 200 TYPE is now ASCII
> 2022-09-29 04:10:01.454 PASV
< 2022-09-29 04:10:01.492 227 Entering Passive Mode (*,*,*,*,100,4)
> 2022-09-29 04:10:01.494 RETR test.csv
. 2022-09-29 04:10:01.494 Connecting to *.*.*.*:25604 ...
< 2022-09-29 04:10:01.570 150-Accepted data connection
< 2022-09-29 04:10:01.571 150 800.7 kbytes to download
< 2022-09-29 04:10:02.028 226-File successfully transferred
< 2022-09-29 04:10:02.028 226 0.458 seconds (measured here), 1.73 Mbytes per second
. 2022-09-29 04:10:02.028 Data connection closed
. 2022-09-29 04:10:02.029 Preserving timestamp [2022-09-29T02:03:10.000Z]
. 2022-09-29 04:10:02.029 Download successful
. 2022-09-29 04:10:02.030 Transfer done: '/htdocs/filestodownload/test.csv' => 'C:\Users\Administrator\Documents\winscp\downloadfiles\test.csv' [819958]
. 2022-09-29 04:10:02.030 Deleting file "/htdocs/filestodownload/test.csv".
> 2022-09-29 04:10:02.031 DELE /htdocs/filestodownload/test.csv
< 2022-09-29 04:10:02.073 250 Deleted /htdocs/filestodownload/test.csv
. 2022-09-29 04:10:02.074 Copying finished: Transferred: 819 958, Elapsed: 0:00:00, CPS: 1 238 607/s
> 2022-09-29 04:10:02.075 Script: close
. 2022-09-29 04:10:02.077 Disconnected from server
Last edited by joks on 2022-09-29 08:47; edited 1 time in total

Reply with quote

joks
Joined:
Posts:
6
Location:
Poland

Ok. logs from older version 5.21.1 that skips file correctly:
File "/htdocs/filestodownload/test2.csv" excluded from transfer
. 2022-09-29 07:45:12.911 WinSCP Version 5.21.1 (Build 12643 2022-06-24) (OS 10.0.17763 - Windows Server 2019 Datacenter)
. 2022-09-29 07:45:12.911 Configuration: nul
. 2022-09-29 07:45:12.911 Log level: Normal
. 2022-09-29 07:45:12.911 Local account: SERVER\Administrator
. 2022-09-29 07:45:12.911 Working directory: C:\Users\Administrator\Documents\winscp
. 2022-09-29 07:45:12.911 Process ID: 2288
. 2022-09-29 07:45:12.920 Ancestor processes: WinSCP, cmd, explorer, ...
. 2022-09-29 07:45:12.921 Command-line: "C:\Users\Administrator\Documents\winscp\WinSCP.exe" /console=5.21.1 /consoleinstance=_7076_565 "/log=C:\Users\Administrator\Documents\winscp\winscplog.log" "/ini=nul" "/command" "open ftp:/***:***@ftpupload.net:21" "lcd C:\Users\Administrator\Documents\winscp\downloadfiles" "cd /htdocs/filestodownload" "get -delete -transfer=ascii *.csv -filemask=<=2K " "close" "exit"
. 2022-09-29 07:45:12.921 Time zone: Current: GMT+2, Standard: GMT+1 (Środkowoeuropejski czas stand.), DST: GMT+2 (Środkowoeuropejski czas letni), DST Start: 27.03.2022, DST End: 30.10.2022
. 2022-09-29 07:45:12.921 Login time: czwartek, 29 wrzesień 2022 07:45:12
. 2022-09-29 07:45:12.921 --------------------------------------------------------------------------
. 2022-09-29 07:45:12.921 Script: Retrospectively logging previous script records:
> 2022-09-29 07:45:12.921 Script: open ftp:/***:***@ftpupload.net:21
. 2022-09-29 07:45:12.921 --------------------------------------------------------------------------
. 2022-09-29 07:45:12.921 Session name: ***@ftpupload.net (Ad-Hoc site)
. 2022-09-29 07:45:12.921 Host name: ftpupload.net (Port: 21)
. 2022-09-29 07:45:12.921 User name: *** (Password: Yes, Key file: No, Passphrase: No)
. 2022-09-29 07:45:12.921 Transfer Protocol: FTP
. 2022-09-29 07:45:12.921 Ping type: Dummy, Ping interval: 30 sec; Timeout: 15 sec
. 2022-09-29 07:45:12.921 Disable Nagle: No
. 2022-09-29 07:45:12.921 Proxy: None
. 2022-09-29 07:45:12.921 Send buffer: 262144
. 2022-09-29 07:45:12.921 UTF: Auto
. 2022-09-29 07:45:12.921 FTPS: None [Client certificate: No]
. 2022-09-29 07:45:12.921 FTP: Passive: Yes [Force IP: Auto]; MLSD: Auto [List all: Auto]; HOST: Auto
. 2022-09-29 07:45:12.921 Local directory: default, Remote directory: home, Update: Yes, Cache: Yes
. 2022-09-29 07:45:12.921 Cache directory changes: Yes, Permanent: Yes
. 2022-09-29 07:45:12.921 Recycle bin: Delete to: No, Overwritten to: No, Bin path: 
. 2022-09-29 07:45:12.921 Timezone offset: 0h 0m
. 2022-09-29 07:45:12.921 --------------------------------------------------------------------------
< 2022-09-29 07:45:12.938 Script: Connecting to ftpupload.net ...
. 2022-09-29 07:45:12.939 Connecting to ftpupload.net ...
. 2022-09-29 07:45:13.104 Connected with ftpupload.net. Waiting for welcome message...
< 2022-09-29 07:45:13.144 220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
< 2022-09-29 07:45:13.144 220-You are user number 407 of 6900 allowed.
< 2022-09-29 07:45:13.144 220-Local time is now 01:14. Server port: 21.
< 2022-09-29 07:45:13.144 220-This is a private system - No anonymous login
< 2022-09-29 07:45:13.144 220 You will be disconnected after 60 seconds of inactivity.
> 2022-09-29 07:45:13.144 USER ***
< 2022-09-29 07:45:13.181 331 User *** OK. Password required
> 2022-09-29 07:45:13.181 PASS **********
< 2022-09-29 07:45:13.260 230-Your bandwidth usage is restricted
< 2022-09-29 07:45:13.260 230 OK. Current restricted directory is /
> 2022-09-29 07:45:13.260 SYST
< 2022-09-29 07:45:13.297 215 UNIX Type: L8
> 2022-09-29 07:45:13.297 FEAT
< 2022-09-29 07:45:13.335 211-Extensions supported:
< 2022-09-29 07:45:13.335  EPRT
< 2022-09-29 07:45:13.335  IDLE
< 2022-09-29 07:45:13.335  MDTM
< 2022-09-29 07:45:13.335  SIZE
< 2022-09-29 07:45:13.335  REST STREAM
< 2022-09-29 07:45:13.335  MLST type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*;
< 2022-09-29 07:45:13.335  MLSD
< 2022-09-29 07:45:13.336  AUTH TLS
< 2022-09-29 07:45:13.336  PBSZ
< 2022-09-29 07:45:13.336  PROT
< 2022-09-29 07:45:13.336  UTF8
< 2022-09-29 07:45:13.336  ESTA
< 2022-09-29 07:45:13.336  PASV
< 2022-09-29 07:45:13.336  EPSV
< 2022-09-29 07:45:13.336  SPSV
< 2022-09-29 07:45:13.336  ESTP
< 2022-09-29 07:45:13.336 211 End.
> 2022-09-29 07:45:13.336 OPTS UTF8 ON
< 2022-09-29 07:45:13.374 200 OK, UTF-8 enabled
< 2022-09-29 07:45:13.374 Script: Connected
. 2022-09-29 07:45:13.374 Connected
. 2022-09-29 07:45:13.374 --------------------------------------------------------------------------
. 2022-09-29 07:45:13.374 Using FTP protocol.
. 2022-09-29 07:45:13.374 Doing startup conversation with host.
< 2022-09-29 07:45:13.374 Script: Starting the session...
> 2022-09-29 07:45:13.375 PWD
< 2022-09-29 07:45:13.412 257 "/" is your current location
. 2022-09-29 07:45:13.413 Getting current directory name.
. 2022-09-29 07:45:13.413 Startup conversation with host finished.
< 2022-09-29 07:45:13.413 Script: Session started.
< 2022-09-29 07:45:13.414 Script: Active session: [1] ***@ftpupload.net
> 2022-09-29 07:45:13.414 Script: lcd C:\Users\Administrator\Documents\winscp\downloadfiles
< 2022-09-29 07:45:13.415 Script: C:\Users\Administrator\Documents\winscp\downloadfiles
> 2022-09-29 07:45:13.415 Script: cd /htdocs/filestodownload
. 2022-09-29 07:45:13.415 Changing directory to "/htdocs/filestodownload".
> 2022-09-29 07:45:13.415 CWD /htdocs/filestodownload
< 2022-09-29 07:45:13.454 250 OK. Current directory is /htdocs/filestodownload
. 2022-09-29 07:45:13.454 Getting current directory name.
> 2022-09-29 07:45:13.454 PWD
< 2022-09-29 07:45:13.493 257 "/htdocs/filestodownload" is your current location
< 2022-09-29 07:45:13.493 Script: /htdocs/filestodownload
> 2022-09-29 07:45:13.493 Script: get -delete -transfer=ascii *.csv -filemask=<=2K 
. 2022-09-29 07:45:13.494 Retrieving directory listing...
> 2022-09-29 07:45:13.494 TYPE A
< 2022-09-29 07:45:13.532 200 TYPE is now ASCII
> 2022-09-29 07:45:13.533 PASV
< 2022-09-29 07:45:13.571 227 Entering Passive Mode (*,*,*,*,210,173)
> 2022-09-29 07:45:13.571 MLSD
. 2022-09-29 07:45:13.571 Connecting to *.*.*.*:53933 ...
< 2022-09-29 07:45:13.648 150 Accepted data connection
. 2022-09-29 07:45:13.652 type=cdir;sizd=4096;modify=20220929054440;UNIX.mode=0755;UNIX.uid=28843827;UNIX.gid=28843827;unique=19g1837eeb38; .
. 2022-09-29 07:45:13.652 type=pdir;sizd=31;modify=20220520135021;UNIX.mode=0755;UNIX.uid=28843827;UNIX.gid=28843827;unique=19gd00a5ba2d; ..
. 2022-09-29 07:45:13.652 type=file;size=4516;modify=20220929054440;UNIX.mode=0644;UNIX.uid=28843827;UNIX.gid=28843827;unique=19g18626ae70; test2.csv
. 2022-09-29 07:45:13.652 Data connection closed
< 2022-09-29 07:45:13.652 226-Options: -a -l 
< 2022-09-29 07:45:13.652 226 6 matches total
. 2022-09-29 07:45:13.653 Directory listing successful
. 2022-09-29 07:45:13.653 ..;D;0;1899-12-30T01:00:00.000Z;0;"" [0];"" [0];---------;0
. 2022-09-29 07:45:13.653 test2.csv;-;4516;2022-09-29T05:44:40.000Z;4;"28843827" [0];"28843827" [0];rw-r--r--;0
. 2022-09-29 07:45:13.654 Copying 1 files/directories to local directory "C:\Users\Administrator\Documents\winscp\downloadfiles" - total size: 0
. 2022-09-29 07:45:13.654   PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 0100; Resume: S (102400); CalcS: No; Mask: 
. 2022-09-29 07:45:13.654   TM: A; ClAr: No; RemEOF: No; RemBOM: No; CPS: 0; NewerOnly: No; EncryptNewFiles: Yes; ExcludeHiddenFiles: No; ExcludeEmptyDirectories: No; InclM: <=2K; ResumeL: 0
. 2022-09-29 07:45:13.654   AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; *.js; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
. 2022-09-29 07:45:13.654 File "/htdocs/filestodownload/test2.csv" excluded from transfer
* 2022-09-29 07:45:13.655 (ESkipFile) 
. 2022-09-29 07:45:13.655 Copying finished: Transferred: 0, Elapsed: 0:00:00, CPS: 0/s
> 2022-09-29 07:45:13.655 Script: close
. 2022-09-29 07:45:13.658 Disconnected from server
. 2022-09-29 08:10:00.890 --------------------------------------------------------------------------

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,735
Location:
Prague, Czechia

There's no -filemask=<=2K in the 5.21.3 log:
> 2022-09-29 04:10:01.244 Script: get -delete -transfer=ascii *.csv
And even if there were, the file is larger than 2K:
. 2022-09-29 04:10:01.413 File: '/htdocs/filestodownload/test.csv' [2022-09-29T02:03:10.000Z] [819958]

Reply with quote

joks

Ok, but I use the same script without any changes in it. I only replace file WinSCP.com and WinSCP.exe when I update WinSCP portable to new version. That's why I wrote that the new version ignores filemask. After I replace file .com and .exe from older version everything works.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
40,735
Location:
Prague, Czechia

Even the logged WinSCP command line shows that it differs:
. Command-line: "C:\Users\Administrator\Documents\winscp\WinSCP.exe" /console=5.21.3 /consoleinstance=_3612_91 "/log=C:\Users\Administrator\Documents\winscp\winscplog.log" "/ini=nul" "/command" "open ftp://***:***@ftpupload.net:21" "lcd C:\Users\Administrator\Documents\winscp\downloadfiles" "cd /htdocs/filestodownload" "get -delete -transfer=ascii *.csv" "close" "exit"
. Command-line: "C:\Users\Administrator\Documents\winscp\WinSCP.exe" /console=5.21.1 /consoleinstance=_7076_565 "/log=C:\Users\Administrator\Documents\winscp\winscplog.log" "/ini=nul" "/command" "open ftp:/***:***@ftpupload.net:21" "lcd C:\Users\Administrator\Documents\winscp\downloadfiles" "cd /htdocs/filestodownload" "get -delete -transfer=ascii *.csv -filemask=<=2K " "close" "exit"
So I do not think you are right that you use both versions the same way.
Plus, there's the file size difference.
If you still believe you are correct, we need see your batch file (or whatever way how you run WinSCP).

Reply with quote

Advertisement

You can post new topics in this forum