Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Upload only files that are new and contain data

Yes, that's correct.

Though just note that >0HS selects the files modified (not created) in the current hour (not sure how define the last hour).
See https://winscp.net/eng/docs/file_mask#today
seagonis

Upload only files that are new and contain data

This will cause the file to upload only if created in the last hour:
put Test.csv -filemask=">0HS"

This will cause the file to upload only if it contains data:
put Test.csv -filemask=">0K"

This seems to upload the file if it was modified in the last hour OR if it contains data:
put Test.csv -filemask=">0HS, >0K"

What do I need to do differently so the file will only upload if it satisfies both conditions instead of either?

Edit: Looks like this is what I needed to use:
put test.csv -filemask=">0HS>0K"