{"id":47623613,"url":"https://github.com/cachebag/unrot","last_synced_at":"2026-04-01T22:31:49.470Z","repository":{"id":344264383,"uuid":"1181188894","full_name":"cachebag/unrot","owner":"cachebag","description":"Dead symlink detector and resolver with fuzzy path recovery.","archived":false,"fork":false,"pushed_at":"2026-03-13T22:53:33.000Z","size":11,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-14T09:30:01.951Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cachebag.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-13T21:04:21.000Z","updated_at":"2026-03-13T22:53:36.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/cachebag/unrot","commit_stats":null,"previous_names":["cachebag/tethers"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/cachebag/unrot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cachebag%2Funrot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cachebag%2Funrot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cachebag%2Funrot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cachebag%2Funrot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cachebag","download_url":"https://codeload.github.com/cachebag/unrot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cachebag%2Funrot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31292642,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T21:15:39.731Z","status":"ssl_error","status_checked_at":"2026-04-01T21:15:34.046Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2026-04-01T22:31:48.938Z","updated_at":"2026-04-01T22:31:49.462Z","avatar_url":"https://github.com/cachebag.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch2 align=\"center\"\u003eunrot\u003c/h2\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n[![CI](https://github.com/cachebag/unrot/actions/workflows/ci.yml/badge.svg)](https://github.com/cachebag/unrot/actions/workflows/ci.yml)\n[![crates.io](https://img.shields.io/crates/v/unrot.svg)](https://crates.io/crates/unrot)\n[![Downloads](https://img.shields.io/crates/d/unrot.svg)](https://crates.io/crates/unrot)\n[![Rust 1.94+](https://img.shields.io/badge/rust-1.94%2B-orange)](https://blog.rust-lang.org/2025/05/15/Rust-1.94.0.html)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](./LICENSE-MIT.md)\n[![License: Apache 2.0](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](./LICENSE-APACHE.md)\n\n\u003c/div\u003e\n\nA symlink is _[broken](https://en.wikipedia.org/wiki/Symbolic_link#:~:text=Its%20target%20path%20would%20point%20to%20nothing%20and%20might%20be%20described%20as%20broken%2C%20orphaned%2C%20dead%2C%20or%20dangling)_ when its target no longer exists. `unrot` finds these, reports the dead target path, and attempts to \nlocate where it moved by fuzzy matching the target filename against the real filesystem. You decide whether to re-link, skip, or remove.\n\n## Install\n\n```\ncargo install unrot\n```\n\n## Usage\n\n```bash\n# Scans current directory for broken symlinks and interactively allows you to fix them (default)\nunrot\n\n# Scans a specific directory\nunrot /path/to/project\n\n# Scan only — report broken links (link -\u003e target)\nunrot scan /path/to/project\n\n# List broken symlink paths only, no candidates\nunrot list /path/to/project\n\n# Search for candidates in a wider directory tree\nunrot ~/project -s ~/\n\n# Preview what would happen without modifying anything\nunrot /path/to/project --dry-run\n\n# Add extra directories to skip (on top of .git, node_modules, target, etc.)\nunrot /path/to/project -I vendor -I dist\n\n# Run a command without terminal coloring enabled\nunrot [OPTIONS] [PATH] --no-color\n```\n\n### Commands\n\n| Command | Description |\n|---------|-------------|\n| *(default)* | Interactive fix mode — scan, show candidates, let you re-link/skip/remove |\n| `scan [PATH]` | Scan only, report broken links (link -\u003e target) |\n| `fix [PATH]` | Interactive fix mode (explicit) |\n| `list [PATH]` | List broken link paths only, no candidates, exit |\n\n### Interactive commands\n\nWhen prompted for each broken symlink:\n\n| Input | Action |\n|-------|--------|\n| `1`, `2`, ... | Re-link to the numbered candidate |\n| `c` | Enter a custom path to re-link to |\n| `s` | Skip this symlink |\n| `r` | Remove this symlink (asks for confirmation) |\n\n### Options\n\n| Option | Short | Description |\n|--------|-------|-------------|\n| `[PATH]` | — | Directory to scan (default: `.`) |\n| `--search-root \u003cPATH\u003e` | `-s` | Search for candidates here instead of the scan path |\n| `--dry-run` | — | Preview changes without modifying the filesystem |\n| `--batch-confirm` | — | Collect all decisions, show summary, then confirm before applying |\n| `--ignore \u003cNAME\u003e` | `-I` | Additional directory names to skip (repeatable) |\n| `--no-color` | -- | Disables terminal coloring for a given command |  \n\n## License\n\nLicensed under either of\n\n * Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE))\n * MIT license ([LICENSE-MIT](LICENSE-MIT))\n\n at your option.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcachebag%2Funrot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcachebag%2Funrot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcachebag%2Funrot/lists"}