File and Folder Mask

Advertisement

lordlamberino
Joined:
Posts:
1

File and Folder Mask

Hey All,

I have searched but the solutions don't seem to be doing what I hope!

I am trying to do a straight forward sync but I only want to pick up files with scanRecord in the name and in folders that end in at least 3 numbers.

eg /home/xfer/1200/scanRecord.txt

but not
/home/xfer/.cache/scanRecord.txt
/home/xfer/123/somethingElse.txt

This is what i am currently using:

synchronize local -filemask="/home/xfer/*[0-9][0-9][0-9]/*scanRecord*" z:\dataDump\ /home/xfer/

But at the moment this is still picking up /home/xfer/.cache/scanRecord.txt

Thanks!

Reply with quote

Advertisement

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

Re: File and Folder Mask

WinSCP file masks do not work like that.

It should be
/home/xfer/*[0-9][0-9][0-9]/; /home/xfer/*[0-9][0-9][0-9]/*scanRecord*

Reply with quote

Advertisement

You can post new topics in this forum