Excluding files from encoding but still copying to output directory

Top  Previous  Next

We have added an option into the command line encoder to specify which files should be encoded (-f). You may specify what files will be encoded by filenames, filemasks or filelist. All other files which have been added for processing or found by expanding filemasks will be copied into the output directory "as-is" without encoding.  If you don't specify the -f option then all specified files will be encoded by default.

 

Example 1:

>encode5 -r -f "*.php" -o "output_dir" "*"

All (with recursion) *.php files from the current directory will be encoded and copied into the output_dir. All other files from the current directory will be copied into output_dir as-is (unencoded).

 

You may specify multiple filenames or filemasks with using of multiple -f options:

 

Example 2:

>encode5 -r -f "*.php" -f "includes/*.inc" -f @myphpfiles -o "output_dir" "*"

 

If you don't specify the output directory but use -f option then only files specified with -f option will be encoded. All other files will remain unchanged.