Wimlib_iterate_dir_tree without hashing

Comments, questions, bug reports, etc.
Post Reply
JFX
Posts: 40
Joined: Tue Aug 18, 2015 3:59 pm

Wimlib_iterate_dir_tree without hashing

Post 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?
synchronicity
Site Admin
Posts: 472
Joined: Sun Aug 02, 2015 10:31 pm

Re: Wimlib_iterate_dir_tree without hashing

Post 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.)
synchronicity
Site Admin
Posts: 472
Joined: Sun Aug 02, 2015 10:31 pm

Re: Wimlib_iterate_dir_tree without hashing

Post by synchronicity »

This has been fixed on the master branch.
Post Reply