How to exclude folders from Sync?

All I tried by defining a folder that should be excluded (with all its sub-folders and files) from sync failed. All I could manage is excluding files in a folder but the folder itself and all sub-folders with it files are still synced.

Is there a clou?

/Rainer