Excluding files by the file mask

Top  Previous  Next

You may exclude some files or directories from encoding when using the command line encoder. Use --exclude=mask option to specify file(s) and/or dir(s) to exclude from processing. You may specify either a strict name, relative path with a directory name or a mask (with ? and/or *).

 

UNIX users: Always quote masks under UNIX. Otherwise the shell will replace your mask with real file and dir names and the result may be unexpected. You should always quote masks that specifies files to encode too (like "*.php" in the example below).

 

Example: encode4 -r --exclude "doc/*" --exclude "config.php" "*.php"

 

This will encode all *.php files in the current directory and all directories recursively but all files in the "doc" directory and all files (and dirs if any!) named "config.php" will not be encoded.

 

You may enumerate all the files you want to exclude from encoding using a file list to specify multiple files. A file list is a text file with either full or relative file paths of all the files to encode, separated by a new line (masks are supported, use '*' and '?' for it). You should use an @ sign before the filelist name in the command line. Usage: -x @filelistname