Calculate files control sum
Project description
Utility to Calc Files Control Sum (CFCS) in specified folder.
File checksum information is written to stdout. To later check the files for changes, you need to save this information to a file by redirecting the output to a file (> filename.ext)
Command string parameters:
- --src - the checksums of the files in this folder are calculated. Default - current working dir.
- --alg - for calc control sum file (SHA1, SHA224, SHA256, SHA384, SHA512, MD5). Default - MD5
- --ext - File name templates, according to which the checksum of the file will be calculated.
- --check_file - Name of the source file of checksums for checking files. If this option is defined, then the rest do not need to be defined!
Example:
cfcs --src=/home/username --alg=sha1 --ext="*.rar,*.avi,*.bmp" (writing checksum information to stdout).cfcs --src=/home/username --alg=sha1 --ext="*.zip,*.7z,*.mp4" > control_sum_filename.ext (writing checksum information to file).cfcs --check_file==/home/previously_created_file.ext (check files in folder).
Make check folder file
cfcs --src="/home/roman/Изображения" --ext="*.png" > my_images.cs
Checking files for changes
cfcs --check_file="my_images.cs"
Work example
my_test.cs file content:
{SETTINGS}
check_file None
src /mnt/anydata/tmp
alg md5
ext ['*.img']
start_time 2022-12-17 14:05:42.637208
{FILES_AND_CONTROL_SUM}
A981130CF2B7E09F4686DC273CF7187E test1.img
CD573CFAACE07E7949BC0C46028904FF test5.img
CD573CFAACE07E7949BC0C46028904FF test3.img
CD573CFAACE07E7949BC0C46028904FF test0.img
C698C87FB53058D493492B61F4C74189 test2.img
CD573CFAACE07E7949BC0C46028904FF test4.img
{INFO AND STATISTICS}
Ended: 2022-12-17 14:05:58.980157 Files: 6; Bytes processed: 9663676416
Processing speed [MiB/sec]: 563.913
hash_val DD44D3D71819D7EE6A5622544AE1905E
Checking files for changes
cfcs --check_file="my_test.cs"
Result
...:~$ Checking started!
Total files checked: 6 Modified files: 0 I/O errors: 0
Checking speed [MiB/sec]: 546.237
...:~$
PyPi
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file calc_files_control_sum-1.0.3.tar.gz.
File metadata
- Download URL: calc_files_control_sum-1.0.3.tar.gz
- Upload date:
- Size: 10.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
323f68120164423eb3df7075f325324ffd4e8fd732f51f6f43947628290fa36c
|
|
| MD5 |
c5252c0276e12743856c903cab148718
|
|
| BLAKE2b-256 |
50c75099679a2743e25c037e73fda4b1276e5e131e55909cadbafaa8a5d3c03b
|
File details
Details for the file calc_files_control_sum-1.0.3-py3-none-any.whl.
File metadata
- Download URL: calc_files_control_sum-1.0.3-py3-none-any.whl
- Upload date:
- Size: 10.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e2c9e1de3b54600010f5837251628046ec92db1f6d463894bd2ad25927b6a68
|
|
| MD5 |
000a14375c422d2ad43374b2fb290437
|
|
| BLAKE2b-256 |
98266d2cd36d1b47bc0f8ba5fb8a7b0cdc7f3009d27b5371fb63d99eac320753
|