Re: i have tried but cant get filemask to work
You will probably also want the
https://winscp.net/eng/docs/rawtransfersettings#excludeemptydirectories
ExcludeEmptyDirectories
:
put -filemask="..." * -rawtransfersettings ExcludeEmptyDirectories=1
https://winscp.net/eng/docs/rawtransfersettings#excludeemptydirectories