How do I filter in this scenario?

I have a big shared folder and I want only 1 of the subfolders in my client, but I also want to exclude a file inside that subfolder. Does anyone knows how to deal with this?

What I’ve tried:

!/Subfolder * /Subfolder/File.to.exclude

but it doesn’t work, the File.to.exclude is always in sync

Any help would be appreciated, thanks.

!/Subfolder 
*
/Subfolder/File.to.exclude

(sorry, bad formatting)

The wording isn’t clear here (e.g. ignore vs exclude), but the order does matter in this case, so I’d guess the following would do the job.

/Subfolder/File.to.exclude
!/Subfolder 
*

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.