Skip to content

filecopy.exclude_pattern

Filecopy collections will exclude files which match this regular expression.

Key: filecopy.exclude_pattern
Type: String
Can be set in: collection.cfg

Description

This option allows a regular expression to be specified that will be used to exclude certain files from being copied. Any filename that matches the given regular expression will not be copied and indexed. This has many uses, for example, it could be used to prevent a certain subdirectory from being indexed.

Caveats

  • Only for filecopy collections
  • The regular expression must match the entire name of the file. Note the .* at the end of the exclude pattern in the example below.
  • The regular expression must match the internal name that is used in copying. This will not be a standard windows, UNC or unix path. It will either be a 'file' or 'smb' URL. e.g. file:///c:/documents/file.txt_or smb://file-server/dir/file.txt

Default Value

Office temporary files are excluded:

filecopy.exclude_pattern=^.*[\\/]~[^\\/]+$

Examples

Ignore images:

filecopy.exclude_pattern=.*(png|jpg|gif|bmp)$

Ignore everything in the 'junk' directory

filecopy.exclude_pattern=file:///myfilecopysource/data/junk/.*

See Also

top

Funnelback logo
v15.22.0