detect

FileSet.detect(test, *args, **kwargs)[source]

Search for anomalies in fileset

Parameters:
  • test – Can be duplicates, overlaps, enclosed or a reference to your own function that expects two FileInfo objects as parameters.

  • *args – Positional arguments for find().

  • **kwargs – Keyword arguments for find().

Yields:

A FileInfo object of each file that fulfilled the test.