Create separate checksum files for directories - target path ignored

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

Create separate checksum files for directories - target path ignored

Post by *Flint »

1. Select a few subdirectories, call File — Create Checksum File(s).
2. Turn on the option "Create separate checksum files for each directory" (the destination field will change the name into a * mask).
3. Change the destination path to some other directory but keep the mask, like C:\Temp\*.sha1; press OK.
4. The checksum files are created in the selected subdirectories themselves; whatever path you entered is completely ignored.

If you use "separate checksums for each file", the destination path works correctly (only the files are not put into subdirs, but that's probably intentional); so with the "directories" option I'd expect it to work too.

Tested in 9.50a rc1 x32 and x64, Win7.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Create separate checksum files for directories - target path ignored

Post by *ghisler(Author) »

This is by design. When creating checksums by directory, they will be placed in these directories.
Author of Total Commander
https://www.ghisler.com
User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

Re: Create separate checksum files for directories - target path ignored

Post by *Flint »

But why is that so different from the option "for each file"? I'm not sure that is a good idea. What about read-only locations, like system-protected paths which require elevated Admin for writing, or read-only network shares?

Anyway, if that's by design, it definitely should be explained in the help.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Create separate checksum files for directories - target path ignored

Post by *ghisler(Author) »

But why is that so different from the option "for each file"?
With the option "for each file", all checksum files just go to the indicated target directory with the names of the files (no directory hierarchy). This is also rather useless because the checksum files don't contain absolute paths.
Author of Total Commander
https://www.ghisler.com
User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

Re: Create separate checksum files for directories - target path ignored

Post by *Flint »

ghisler(Author) wrote: 2020-02-17, 16:29 UTC With the option "for each file", all checksum files just go to the indicated target directory with the names of the files (no directory hierarchy).
That's not true. Well, not always true. If you leave the target path unchanged, the checksum files will be created in the subdirectories.

Example: Suppose in C:\Temp\ we have the following structure:

Code: Select all

|-dir1\
|  |-file1.txt
|  |-file2.txt
|-file3.txt
|-file4.txt
Select dir1, file3.txt, file4.txt; call Files - Create Checksums; turn on the "…for each file" option and leave the destination path unchanged: C:\Temp\*.sha

The result will be:

Code: Select all

|-dir1\
|  |-file1.sha
|  |-file1.txt
|  |-file2.sha
|  |-file2.txt
|-file3.sha
|-file3.txt
|-file4.sha
|-file4.txt
If you change the destination to anything else, then, indeed, all 4 SHA files will be created in the specified path, without subdirs. But at least they will be in the directory where I asked TC to create them. So, with the option "…for each directory" I would expect the same behavior, only with one file for the "dir1" contents instead of several.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
Post Reply