{"id":19339731,"url":"https://github.com/rubenv/dupefinder","last_synced_at":"2025-04-23T02:30:55.049Z","repository":{"id":32452435,"uuid":"36031804","full_name":"rubenv/dupefinder","owner":"rubenv","description":"Detect duplicate files across different machines","archived":false,"fork":false,"pushed_at":"2020-08-16T11:28:12.000Z","size":11,"stargazers_count":9,"open_issues_count":2,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-02T06:43:12.895Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://rocketeer.be/blog/2015/05/dupefinder/","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"GPUOpen-Effects/ShadowFX","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rubenv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-21T18:59:45.000Z","updated_at":"2022-10-06T17:39:12.000Z","dependencies_parsed_at":"2022-09-26T18:50:56.360Z","dependency_job_id":null,"html_url":"https://github.com/rubenv/dupefinder","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubenv%2Fdupefinder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubenv%2Fdupefinder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubenv%2Fdupefinder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubenv%2Fdupefinder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rubenv","download_url":"https://codeload.github.com/rubenv/dupefinder/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250357567,"owners_count":21417307,"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":[],"created_at":"2024-11-10T03:23:34.586Z","updated_at":"2025-04-23T02:30:54.776Z","avatar_url":"https://github.com/rubenv.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dupefinder\n\n[![Build Status](https://travis-ci.org/rubenv/dupefinder.svg?branch=master)](https://travis-ci.org/rubenv/dupefinder) [![GoDoc](https://godoc.org/github.com/rubenv/dupefinder?status.png)](https://godoc.org/github.com/rubenv/dupefinder)\n\nDetect duplicate files across different machines, using SHA256\n\nIntroductory blog post: https://rocketeer.be/blog/2015/05/dupefinder/\n\n# Installation\n```\ngo get github.com/rubenv/dupefinder/...\n```\n\n# Usage\n\n```\nUsage: dupefinder -generate filename folder...\n    Generates a catalog file at filename based on one or more folders\n\nUsage: dupefinder -detect [-dryrun / -rm] filename folder...\n    Detects duplicates using a catalog file in on one or more folders\n\n  -detect=false: Detect duplicate files using a catalog\n  -dryrun=false: Print what would be deleted\n  -generate=false: Generate a catalog file\n  -rm=false: Delete detected duplicates (at your own risk!)\n```\n\n# As a library\n\nImport into your application with:\n\n```go\nimport \"github.com/rubenv/dupefinder\"\n```\n\n## Usage\n\n#### func  Detect\n\n```go\nfunc Detect(catalog string, echo, rm bool, folders ...string) error\n```\nDetect duplicates. Set echo to true to print duplicates, rm to delete them.\n\n#### func  Generate\n\n```go\nfunc Generate(catalog string, folders ...string) error\n```\nGenerate a catalog file based on a set of folders\n\n#### type DupeCatalog\n\n```go\ntype DupeCatalog map[string]string\n```\n\nCatalog of hash to filename mappings\n\n#### func  ParseCatalog\n\n```go\nfunc ParseCatalog(filename string) (DupeCatalog, error)\n```\nParse the catalog file at filename\n\n#### func  ParseCatalogReader\n\n```go\nfunc ParseCatalogReader(reader io.Reader) (DupeCatalog, error)\n```\nParse a catalog file using an io.Reader\n\n## License\n\n    (The MIT License)\n\n    Copyright (C) 2015 by Ruben Vermeersch \u003cruben@rocketeer.be\u003e\n\n    Permission is hereby granted, free of charge, to any person obtaining a copy\n    of this software and associated documentation files (the \"Software\"), to deal\n    in the Software without restriction, including without limitation the rights\n    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n    copies of the Software, and to permit persons to whom the Software is\n    furnished to do so, subject to the following conditions:\n\n    The above copyright notice and this permission notice shall be included in\n    all copies or substantial portions of the Software.\n\n    THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n    THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubenv%2Fdupefinder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frubenv%2Fdupefinder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubenv%2Fdupefinder/lists"}