Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ specific_args = {
}
```

And last but not least, it's possible to use regular expressions to associate specific arguments to
Another possibility is to use regular expressions to associate specific arguments to
a set of files:

```python
Expand All @@ -186,6 +186,22 @@ specific_args = {
}
```

And last but not least, it's possible to filter files from the reference directory (for example
because the reference directory contains temporary files that should not be compared). For
example, the following code will ignore all files whose name does not start with `file_` and does
not ends with `_tmp.yaml`:

```python
import dir_content_diff

dir_content_diff.compare_trees(
"reference_dir",
"compared_dir",
include_patterns=[r"file_.*"],
exclude_patterns=[r".*_tmp\.yaml"],
)
```


### Export formatted data

Expand Down
Loading