Filemask not working on synchronize

Advertisement

MisterDaniel
Guest

Filemask not working on synchronize

Hello,

I am trying to get synchronize to ignore files in the subdirectories (e.g.: "Text Files/Archive/file1.txt"), but it's not working so I'm guessing something is wrong with my code. Could you please advise me? Thanks!

open profile1
option transfer automatic 
synchronize local W:\directory1 "Text Files" -filemask="*/"
close
open profile2
option transfer automatic 
synchronize remote W:\directory1 "Files - Inbound" -filemask="*/"
close
exit

Reply with quote

Advertisement

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

Re: Filemask not working on synchronize

Your mask is include mask, what basically means that it does not do anything, as the directories are included by default. To turn it to exclude mask, prepend it with pipe symbol:
synchronize local W:\directory1 "Text Files" -filemask="|*/"
See also https://winscp.net/eng/docs/file_mask

Reply with quote

Advertisement

You can post new topics in this forum