compare_directories
Compare two directories side by side, revealing files unique to each, differing files, and identical ones. Supports depth limits and glob patterns for inclusion or exclusion.
Instructions
Compare two directories side by side. Shows files only in the first, only in the second, files that differ, and identical files.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path1 | Yes | Relative path to the first directory. | |
| path2 | Yes | Relative path to the second directory. | |
| maxDepth | No | Maximum depth to traverse (default: 10, max: 10). | |
| include | No | Comma-separated glob patterns to include (e.g. '*.log, *.txt'). Only matching files are returned. Supports * and ? wildcards. Empty means all files. | |
| exclude | No | Comma-separated glob patterns to exclude (e.g. 'node_modules, *.tmp'). Matching files and directories are skipped. Supports * and ? wildcards. |