Performing Scans on Directories and Files
Performing scans on directories and files using Four Clover involves using various command-line options to tailor the scanning process to your specific needs.
Last updated
Performing scans on directories and files using Four Clover involves using various command-line options to tailor the scanning process to your specific needs.
Here are the commands and explanations for initiating scans:
To perform a basic scan on a specified directory:
fourclover snapshot mytargetdirThis command initiates a scan on the specified directory and generates a scan report.
To save the scan report to a specific file:
fourclover snapshot mytargetdir -out scan_report.jsonUse the -out option followed by the desired file name.
To select specific hash algorithms for file verification:
fourclover snapshot mytargetdir -hashes sha256,md5Use the -hashes option followed by a comma-separated list of hash algorithm names.
To exclude specific files or directories from the scan:
Use the -exclude option followed by a comma-separated list of file/directory names.
To scan only files with specific extensions:
Use the -focus option followed by a comma-separated list of file extensions.
To add a name to the scan report (useful for comparison purposes):
Use the -name option followed by the desired name.
Last updated
fourclover snapshot mytargetdir -exclude .git,node_modulesfourclover snapshot mytargetdir -focus .py,.js,.txtfourclover snapshot mytargetdir -name "My Project"