Upload with Time Constraint not working

Advertisement

george22
Donor
Joined:
Posts:
2
Location:
Washington DC

Upload with Time Constraint not working

I have a bunch of files in a folder but only need to ftp the most recent file.
The command I'm using is below which uploads all files and works great.
put c:\bm\sales\2025\*.txt /uploads/
However, when I try adding any time constraints in variations of > < = but get "No file matching '*.txt<1DS' found." every time. I've even tried the
put c:\bm\sales\2025\*.txt>today /uploads/
with variations of < and = but get the same result. I was using a 2022 version but upgraded to the latest version and get the same result. Log snippet below.
< 2025-03-14 21:35:19.666 Script: Active session: [1] blueskytech@sftp***.***.com
> 2025-03-14 21:35:19.666 Script: put c:\bm\sales\2025\*.txt<1DS /uploads/
< 2025-03-14 21:35:19.666 Script: No file matching '*.txt<1DS' found.
. 2025-03-14 21:35:19.666 Copying 0 files/directories to remote directory "/uploads/" - total size: 0
Any help would be greatly appreciated. Thanks in advance.

Reply with quote

Advertisement

george22
Donor

That did the trick! Just didn't understand the necessity for -filemask. Thank you so much! Really love the app and been meaning to donate. Will get that done today!

Reply with quote

Advertisement

You can post new topics in this forum