Excluding files from processing |
Top Previous Next |
You may exclude some files or directories from processing. Please 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 * wildcard symbols). Wildcards in directory names are also supported. Note, excluded files will neither be processed, nor be copied to the target (-o) folder.
Example: rubyencoder -r --exclude "doc/*" --exclude "config.rb" "*.rb"
This will encode all the *.rb files in the current directory and all directories recursively but the files in the "doc" directory and all files (and dirs if any!) named "config.rb" 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 exclude, separated by a new line (masks are supported, use * and/or ? wildcard symbols). Specify the @ before the filelist name in the command line, e.g. -x @excludefilelist
Also it's possible to permanently mark files for skipping from encoding. See details.
Do not forget to quote file masks in the command line on Unix or Mac |