diff --git a/src/missing.py b/src/missing.py index 90c6dbd..f99df89 100644 --- a/src/missing.py +++ b/src/missing.py @@ -25,13 +25,13 @@ def __init__(self, exclude: Sequence[str]): exclude = [os.path.normpath(path) for path in exclude] logger.debug(f'{exclude=}') - files_excluded = set() + files_included = set() for file in files: if all([not file.startswith(e) for e in exclude]): - files_excluded.add(file) - logger.debug(f'{files_excluded=}') + files_included.add(file) + logger.debug(f'{files_included=}') - self.files = files_excluded + self.files = files_included def run(self) -> int: """Return 1 if there are missing files, otherwise 0"""