HomeSoftware Heritage

algos.dir_iterators: Fix handling of empty directory

Description

algos.dir_iterators: Fix handling of empty directory

Two issues found regarding the way empty directories were handled:

  • _empty_dir_hash variable did not have correct type (str instead of bytes) so empty directory test based on hash comparison was always failing
  • in the step method of DirectoryIterator, no need to push a new frame for an empty directory as this will stop the iteration

Details

Provenance
anlambertAuthored on Sep 25 2018, 7:18 PM
anlambertPushed on Sep 28 2018, 2:32 PM
Parents
rDSTO3a8698261723: sql/bin/db-init: remove createuser and privileges (we now assume a peer…
Branches
Unknown
Tags
Unknown