filemask using days, e.g *>=1D Is 1D = 24 hours or just the calendar day prior?

Advertisement

dbabmr
Joined:
Posts:
1

filemask using days, e.g *>=1D Is 1D = 24 hours or just the calendar day prior?

If I use -filemask="*>=1D", does that compare just the day component of time, or does it compare using 24 hours? Example, if source file was created 25 hours ago at 7am my time yesterday, if I do a get using *>=1D", will that file get picked up? The date is one day old, but the time is more than 24 hours ago. Thanks.

Reply with quote

Advertisement

felixramses
Joined:
Posts:
1

Mask is invalid near 'yesterday'

Hello, I'm making a batch that downloads the files with last modification of the previous day. When I use the 1DS mask or 'yesterday' when I run it it sends me a message that it is invalid. It only lets me use it with 1D but this doesn't work for me.

the part of the instruction that fails is the following:

get "/CONV/*.gz>yesterday" "C:\FILEBASE\FILE\DAILY\LANDING\"

or
get "/CONV/*.gz>1DS" "C:\FILEBASE\FILE\DAILY\LANDING\"

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
30,858
Location:
Prague, Czechia

Re: Mask is invalid near 'yesterday'

felixramses wrote:

Hello, I'm making a batch that downloads the files with last modification of the previous day. When I use the 1DS mask or 'yesterday' when I run it it sends me a message that it is invalid. It only lets me use it with 1D but this doesn't work for me.
You probably have an old version of WinSCP, which does not support the S suffix yet. Make sure you have the latest version.

Reply with quote

Advertisement

You can post new topics in this forum