include and exclude options let you deploy a chosen set of files and folders from a larger source folder. They were added in DIRECT 6.0.2.41 and its deployment scripts.
How filters work
exclude: files and folders to leave out.include: files and folders to deploy. Everything else is ignored.*is a wildcard and!negates a wildcard.- Separate entries with a semicolon (
;). - Paths are relative to the
sourcepath. - If a file matches both,
excludewins.
The tools don’t search your source path for every file in your filters, so missing files or folders don’t cause an error. They’re ignored and the deployment continues.
Examples
Check the result
Open the release’s metafile from thesync_directory you deployed to. release_deploy.py shows where it copied the metafile:
files section lists the files in the release:

