Include pattern but not in sub-folders

Get help for specific problems
Posts: 8
Joined: 19 Jan 2021

PRSoftware

Hello,

I use FreeFileSync on Linux.

I synchronize the directory /home/my_name/Documents with a FTP server.

How can I include files with a pattern (for example: *.txt) located in the root directory but exclude files with the same pattern in all the sub folders whatever the level ?

I tried */*.txt in the exclusion list but it excludes also the files in the root directory.
User avatar
Posts: 2946
Joined: 22 Aug 2012

Plerry

Try /*/*.txt as your exclude rule.
The added slash (/) up front should do the trick.
Posts: 8
Joined: 19 Jan 2021

PRSoftware

Thanks Plerry, it is exactly what I wanted.