Skip to main content

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:

  • -h, --help show this help message and exit
  • -c CHECK_FILE, --check_file CHECK_FILE Name of the source file of checksums for checking files. Type: cfcs [opt] > filename.ext to produce check file filename.ext in current working dir!
  • -s SRC, --src SRC Folder in which checksums of files are calculated.
  • -a ALG, --alg ALG Algorithm for calculating the checksum. For example MD5, SHA1, SHA224, SHA256, SHA384, SHA512. Default value: md5
  • -e EXT, --ext EXT Pattern string for filename matching check! Filters out files subject to checksum calculation. For example: ".zip,.rar,*.txt"

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 files by their checksums has begun!
The file has been verified. No changes found.: /mnt/anydata/big_archive.tar.gz
Total files checked: 1
Number of modified files: 0
Number of I/O errors: 0
File scan speed [MiB/s]: 82.969

PyPi

https://pypi.org/project/calc-files-control-sum/

Internationalization

Most of the program messages are translated into five languages: English, Russian, German, Spanish, French. See: https://github.com/octaprog7/PyInternalization.

Metadata

Release files for calc-files-control-sum 1.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for calc-files-control-sum 1.1.4
File Size Uploaded
calc_files_control_sum-1.1.4.tar.gz 15.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for calc-files-control-sum 1.1.4
File Interpreter ABI Platform
calc_files_control_sum-1.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 32.2 kB

Release files / calc_files_control_sum-1.1.4.tar.gz

Download URL calc_files_control_sum-1.1.4.tar.gz
Size 15.2 kB
Tags Source
SHA-256 checksum
How to use checksums
5891b416c04edaf6a071e08192d04f704ce3688aec06bc861351f1796da90809
BLAKE2b-256 checksum
How to use checksums
e209671550036c72b8f5444da5b6ef4ac38e5c6a7ec63da7a78b49d898fa3edf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.2

Release files / calc_files_control_sum-1.1.4-py3-none-any.whl

Download URL calc_files_control_sum-1.1.4-py3-none-any.whl
Size 17.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c9e66e483bc3da5f0136e6e346d00288cefb1d636ffa068ce937ecf49a0ce0ea
BLAKE2b-256 checksum
How to use checksums
6e7cf81c8ed096172694ca2563bb0788f185f65c362dac1598213e8b1ee97290
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.2

Release history Release notifications | RSS feed

This release

1.1.4 This release

2 release files

1.1.3

2 release files

1.1.1

2 release files

1.0.3

2 release files

1.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page