Exclude all, include *.txt

Get help for specific problems
Posts: 18
Joined: 7 Jan 2001

webmaster33

It seems, the "Exclude all, include *.txt" kind of excluding doesn't work.

Currently it seems works this way:
- include *.txt is executed first, then excluded *.*, so result is NULL.

The correct excluding should be:
- exclude *.*, then include *.txt, so result is *.txt.
Posts: 23
Joined: 18 Mar 2016

zlhnxqgf

Including *.txt and excluding nothing is sufficient. You are excluding everything from the subset of all .txt files.
User avatar
Posts: 2451
Joined: 22 Aug 2012

Plerry

Apparently @webmaster33 does not clearly understand the include-and exclude-filters in FFS:
https://freefilesync.org/manual.php?topic=exclude-items
"Files and directories are only considered for synchronization if they pass all filter rules. They have to match at least one entry in the include list and none of the entries in the exclude list"