You cannot do it like this. You have exclude the directories, you do not want to synchronize, instead.
I've been struggling with this for a while so maybe someone can shed some light on this for me.
I'm working with a Magento install SO there are deep nested directories I need to sync to and from the server. I have been needing to open multiple WinSCP windows to sync, but figured I might use File Masks. Here is the mask I'm trying to do:
app/code/local/Companymodule/;
app/design/frontend/default/theme/;
app/design/frontend/default/mobile/;
skin/frontend/default/theme/;
skin/frontend/default/mobile/;
I don't want to sync the whole magento install, but just these folders and included files. All it does is sync the root files (skipping directories). If I add an * at the end, the whole server tries to sync. I'd appreciate some help in this whole masking business.