Page 1 of 1

Wimlib_iterate_dir_tree without hashing

Posted: Thu Dec 30, 2021 2:05 pm
by JFX
Wimlib_iterate_dir_tree() does calculate the SHA-1 for all files the are not yet written to the WIM file.
This is very slow, in case I only want to know if some files or folders exists inside an modified image.

Could you add a flag to skip hashing files?

Re: Wimlib_iterate_dir_tree without hashing

Posted: Thu Dec 30, 2021 9:22 pm
by synchronicity
Hmm, I don't remember why I made wimlib_iterate_dir_tree() hash unhashed files in the first place. It was done by this commit. I'm tempted to just revert that commit, which would make wimlib_iterate_dir_tree() do what you want. (Unhashed files would have all zeroes for their hash.)

Re: Wimlib_iterate_dir_tree without hashing

Posted: Mon Jan 03, 2022 8:36 pm
by synchronicity
This has been fixed on the master branch.