prevnext   » SZS: Wiimms SZS Toolset » wszst: Wiimms SZS Tool » wszst scancache

wszst scancache

Scan the cache directory for SZS files and re-build the checksum table. Store the result as file 'cache-content.txt' in the same directory. The file is used by option --cache to optimize file access.


1.   Syntax

wszst SCANCACHE directory
wszst SCANCACHE --cache directory

2.   Options

Option Param Description
--cache dir Define a directory for an SZS cache. If creating a YAZ0, BZ, BZIP2, LZ or LZMA compressed file with standard compression (levels 9,9,9,6,6), the cache is searched for the compressed version. File cache-content.txt is used as file list with hash values. If the cache file is not found or the content differ, the file is (re-)created and exit status 2=differ is returned. Option --remove-dest is set automatically to protect cache integrity.

The idea behind the cache: Loading an SZS file and comparing the decompressed content is clearly faster than compressing the file.

For legay reasons: If parameter DIR is a file, the filename is split into directory and base name. The directory is used for the cache directory and the base name for option --cname, but only if --cname is not used.

--log-cache file Define a file to log chache activities. Use '-' to log to stdout or stderr. The file is openend in append-mode.
--purge Remove repeated files with same checksum.
--fast Scan 'cache-content.txt' and remove duplicates. Ignore option --purge.