Skip to content

[Bug report] Extra files are not reported #82

@liborjelinek

Description

@liborjelinek

Describe the bug

I would expect that extraneous files are reported as a difference, but they aren't. Is it a bug or an undocumented feature?

Optional link from https://dir-content-diff.readthedocs.io which documents the behavior that is expected

No response

To Reproduce

E.g.,
- dir1: foo.txt
- dir2: foo.txt bar.txt

but `dir_content_diff.compare_trees("dir1", "dir2") == {}`

Error

No diff detected, but dir2 contains extraneous files.

Additional context

No response

dir_content_diff Version in Use

1.12.1

Python Version

3.13

Operating system

MacOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions