HomeSoftware Heritage

algos.dir_iterators: Fix handling of empty directory
9adaed700be3Unpublished

Unpublished Commit · Learn More

Repository Importing: This repository is still importing.

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
vlorentzPushed on Oct 2 2018, 5:09 PM
Parents
R65:3a8698261723: sql/bin/db-init: remove createuser and privileges (we now assume a peer…
Branches
Unknown
Tags
Unknown