{"id":19779911,"url":"https://github.com/jondot/dircmp","last_synced_at":"2025-04-30T21:32:30.922Z","repository":{"id":63948106,"uuid":"572028969","full_name":"jondot/dircmp","owner":"jondot","description":"📖 Compare two folders for the similarities and differences","archived":false,"fork":false,"pushed_at":"2022-11-29T13:10:04.000Z","size":15,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-06T04:51:11.465Z","etag":null,"topics":["assert","rust","rust-lang","testing"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jondot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-11-29T12:06:51.000Z","updated_at":"2022-12-01T08:27:36.000Z","dependencies_parsed_at":"2023-01-14T16:15:17.726Z","dependency_job_id":null,"html_url":"https://github.com/jondot/dircmp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jondot%2Fdircmp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jondot%2Fdircmp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jondot%2Fdircmp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jondot%2Fdircmp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jondot","download_url":"https://codeload.github.com/jondot/dircmp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251785566,"owners_count":21643500,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["assert","rust","rust-lang","testing"],"created_at":"2024-11-12T05:38:06.135Z","updated_at":"2025-04-30T21:32:30.612Z","avatar_url":"https://github.com/jondot.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# dircmp\n\n[\u003cimg alt=\"github\" src=\"https://img.shields.io/badge/github-jondot/dircmp-8dagcb?style=for-the-badge\u0026labelColor=555555\u0026logo=github\" height=\"20\"\u003e](https://github.com/jondot/dircmp)\n[\u003cimg alt=\"crates.io\" src=\"https://img.shields.io/crates/v/dircmp.svg?style=for-the-badge\u0026color=fc8d62\u0026logo=rust\" height=\"20\"\u003e](https://crates.io/crates/dircmp)\n[\u003cimg alt=\"docs.rs\" src=\"https://img.shields.io/badge/docs.rs-dircmp-66c2a5?style=for-the-badge\u0026labelColor=555555\u0026logo=docs.rs\" height=\"20\"\u003e](https://docs.rs/dircmp)\n[\u003cimg alt=\"build status\" src=\"https://img.shields.io/github/workflow/status/jondot/dircmp/Build/master?style=for-the-badge\" height=\"20\"\u003e](https://github.com/jondot/dircmp/actions?query=branch%3Amaster)\n\nCompare two folders for the similarities and differences.\n\n* Two way comparison\n* File types (dir, symlink, etc.)\n* Content difference is based on hashing the files, so binaries are also good for comparison\n* Good for asserting in tests and for taking snapshot of difference or similarity\n\n\n# Dependency\n\n```toml\n[dependencies]\ndircmp = \"0.1.0\"\n```\n\n\n# Usage\n\nDefault usage:\n\n```rust\nlet cmp = dircmp::Comparison::default();\n\nlet result = cmp\n    .compare(\n        Path::new(\"/tmp/a\"),\n        Path::new(\"/tmp/b\"),\n    )\n```\n\nIgnore components:\n\n```rust\nuse regex::RegexSet;\n\nlet ignores = let set = RegexSet::new(\u0026[\n    r\"foo\",\n    r\"bar\",\n]).expect(\"should compile\");\n\nlet cmp = dircmp::Comparison::new(ignores);\n\nlet result = cmp\n    .compare(\n        Path::new(\"/tmp/a\"),\n        Path::new(\"/tmp/b\"),\n    )\n```\n\n# Copyright\n\nCopyright (c) 2022 [@jondot](http://twitter.com/jondot). See [LICENSE](LICENSE.txt) for further details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjondot%2Fdircmp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjondot%2Fdircmp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjondot%2Fdircmp/lists"}