Page 1 of 1

Create one checksum per selected folder

Posted: 2016-06-18, 20:24 UTC
by hlloyge
I know this has been topic for quite some time, but could you please add an option, when selecting few folders and creating checksums, to make ONE checksum per folder? Now, when I select few folders and create checksums, it creates ONE checksum with the name of first folder in upper folder.
When I select option to create one checksum per file, it creates one checksum per file in all these folders - still not what I want.
What I want is the option to select few folders and to create checksum of all files and subfolders with files WITHIN selected folder, with the name of that folder, ONE file.

SELECTED FOLDER
- SUBFOLDER
-- subfile
- file in selected folder
- checksum of them all.sha

Can you please make this as option, like 'Create separate checksum file for each folder?', please?

Posted: 2016-06-18, 21:18 UTC
by Dalai
Indeed. Such an option would be a great addition to TC's feature set.

Regards
Dalai

Posted: 2016-08-11, 19:47 UTC
by Dalai
history.txt wrote:10.08.16 Added: Files - Create CRC checksums: New option to create checksum file in each directory. Use name of directory as checksum name by default (32/64)
I guess there's a misunderstanding of how the feature was suggested and how it got implemented. Let's take the typical TC installation directory for example:

Code: Select all

LANGUAGE\
Plugins\
TOTALCMD64.EXE
Let's mark all the directories and call the Create checksum function.

What I thought would happen when selecting the new checkbox was this: The checksums for all files in LANGUAGE dir and all its subdirs go into ONE checksum file, and the checksums of all files in Plugins dir and all its subdirs go into another checksum file. I thought to get TWO checksum files, one per directory.

What happened instead? The checksums of all files of Plugins dir went into one checksum file, the checksums of Plugins\7zip subdir went into another, the checksums of Plugins\bzip2 subdir wento into another and so on. I ended up with 64 checksum files.

On second thought, it's clear that the functions works as labeled, but I think it would be nice to have another checkbox/option where the checksums of ALL SELECTED directories go into one file - just like this thread's title (and OP) suggested. It could be labeled "Create separate checksum files for each SELECTED directory" or something.

Regards
Dalai

Posted: 2016-08-12, 16:12 UTC
by ghisler(Author)
Well, the way it's implemented now is how you usually see it on file servers: Each directory with files to download contains one checksum file with the checksum of the files in that directory. Here is the topic which suggests this method:
http://ghisler.ch/board/viewtopic.php?t=45074

I have never seen it implemented the wy you suggested (having several checksum files in a directory, one for each subdir). That's rather unusual...

Posted: 2016-08-12, 16:39 UTC
by Dalai
Well, it's the way I create and use checksums in TC. The checksum files are in one place/directory and can be verified without having to search for them first. It's also the same way checksum files are created by Linux distributors for their installation CDs/DVDs, e.g. the Debian 8.5.0 amd64 DVD 1:

Code: Select all

c9d0b4c115644a0e8cd3ffc7cdc39e06  ./README.txt
55eca6138b2802d7e0adeee8ad734412  ./autorun.inf
039eecac7959f9eb9da7bc5d24f30a8e  ./boot/grub/efi.img
a52811f3a41e15b01c4cc2551294e8c8  ./boot/grub/font.pf2
dc39cdb44c3fc207ef3fde6f1e9aa900  ./boot/grub/grub.cfg
99863a4a79d6b6d1ecd9c831fcb7ec3c  ./boot/grub/theme/1
d61dc4d7a8ce0399ada6ec0deaccf095  ./boot/grub/theme/1-1
cde9e88c2f4f60c5e74e6c48ae836d0a  ./boot/grub/x86_64-efi/acpi.mod 
Regards
Dalai