Recursive Diff
A command-line utility to compare two directories recursively and identify differences in files.
Features
- Compare directory structures recursively
- Display files that exist in one directory but not the other
- Show number of differing lines for files present in both directories
- Filter hidden files (configurable)
- Ignore files by extension/postfix
Installation
From PyPI
pip install rcdiff
Build with uv
If you have uv installed:
# Clone the repository
git clone <repository-url>
cd refactor-tool
# Build and install
uv pip install -e .
# Or build the distribution
uv build
Usage
rcdiff <dir1> <dir2> [options]
Arguments
dir1— First directory to comparedir2— Second directory to compare
Options
--exclude_hidden_files— Exclude hidden files (default behavior)--include_hidden_files— Include hidden files in comparison--ignore_postfixes POSTFIX [POSTFIX ...]— File extensions to ignore (default:.pyc)
Examples
# Basic comparison
rcdiff ./old_code ./new_code
# Include hidden files
rcdiff ./old_code ./new_code --include_hidden_files
# Ignore multiple file types
rcdiff ./old_code ./new_code --ignore_postfixes .pyc .log .tmp
Output
Displays a formatted table with:
- file — Relative file path
- in [dir1] — Whether file exists in first directory (y/empty)
- in [dir2] — Whether file exists in second directory (y/empty)
- diff lines — Number of differing lines (only shown if differences exist)
Example Output
┏━━━━━━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━━━┓
┃ file ┃ in old ┃ in new ┃ diff lines ┃
┡━━━━━━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━━━┩
│ main.py │ y │ y │ 5 │
│ config.json │ y │ │ │
│ test.py │ │ y │ │
└──────────────┴─────────┴─────────┴────────────┘
Metadata
Release files for rcdiff 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rcdiff-1.0.2.tar.gz | 3.8 kB | Without provenance | Details for rcdiff-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rcdiff-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for rcdiff-1.0.2-py3-none-any.whl |
Total release size: 8.1 kB
Release files / rcdiff-1.0.2.tar.gz
| Download URL | rcdiff-1.0.2.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4bd1052dfb23bbf6b9873d5adb9683fd764081f6044ccab510966d89710af4a4
|
|
BLAKE2b-256 checksum How to use checksums |
0512fc709ed5dcdeb9ccf98ead9a4d343b62ed56e9a7836fdaf1e97c22db2632
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / rcdiff-1.0.2-py3-none-any.whl
| Download URL | rcdiff-1.0.2-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9f87e5222579082b4f6a62e303cd87bb9931e9a7cc5fdb0d94b563f1350dd15b
|
|
BLAKE2b-256 checksum How to use checksums |
d74caed0a33256cd6b5a742eb4cc58819535fe36854f302c06426ab8f3370685
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Security for rcdiff 1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.