Skip to content

swh-model: exclude path support for the function from_disk in Directory

exclude specific path when generating Software Heritage objects

Since swh-scanner needs to implement an exclusion list, when it creates an object from the Directory class in swh.model.from_disk, it will pass a set of PosixPath to be excluded (this set will be generated from the cli with the glob module). The function from_disk through the function ignore_path will check if the parent of a directory is present in the set.

Related swh-scanner#2336 (closed)


Migrated from D2960 (view on Phabricator)

Merge request reports