Skip to main content
The 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 source path.
  • If a file matches both, exclude wins.
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.
Set filters on the command line or in a JSON configuration file:

Examples

Check the result

Open the release’s metafile from the sync_directory you deployed to. release_deploy.py shows where it copied the metafile:
If the metafile is signed, decode it with a tool such as jwt.io. The files section lists the files in the release: