Exclude files

Excluding files and directories works by specifying a phrase that is compared against a file or directory path. Only if the file or directory matches at least one entry in the include list and none of the entries in the exclude list it passes filtering. The phrase is also a file or directory name, but it must be relative to the base sync-directory and may additionally include wild cards like '*' or '?'.


Example: Exclude all sub directories

Include: *
Exclude: *\



This will exclude all objects within the two directories that end with a '\' character, which is interpreted as the end of a directory name.


Example: Mirror-sync from C:\Source to D:\Target

Exclude single file C:\Source\file.txt:
     Filter: \file.txt

Exclude single folder C:\Source\sample\subfolder:
    Filter: \sample\subfolder\

Exclude all *.tmp files located in subfolder only:
    Filter: \sample\subfolder\*.tmp

Exclude files (and folders) named thumbs.db in all sub directories:
    Filter: *\thumbs.db

Exclude all files and folders that have test as part of their name:
    Filter: *test*

Exclude multiple entries; separate by semicolon or newlines:
    Filter: *.tmp; *.doc; *.bak




Note:
A filter phrase „\fileOrDir” matches both a file or a directory named „fileOrDir”. In most cases there is no need to distinguish between a phrase to be used for files or directories. In cases where it is clear you want to process directories only, you can give a hint by adding a backslash: „\fileOrDir\”. Now this filter will be matched against directories only.




Note:
In most cases manually specifying a filter phrase is not necessary! You can exclude files, directories and even complete lists of both directly on main grid via context menu.