{"id":28237207,"url":"https://github.com/just-do-halee/collectfiles","last_synced_at":"2025-06-10T15:30:57.877Z","repository":{"id":57608329,"uuid":"419106202","full_name":"just-do-halee/collectfiles","owner":"just-do-halee","description":"Collects accurate files while running in parallel through directories. (Simple, Fast, Powerful)","archived":false,"fork":false,"pushed_at":"2021-12-03T11:07:34.000Z","size":10,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-19T00:17:54.631Z","etag":null,"topics":["collect","directory","file","parallel","rayon","regex","simple","walk"],"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/just-do-halee.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE_APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["just-do-halee"]}},"created_at":"2021-10-19T22:13:01.000Z","updated_at":"2022-06-01T16:10:01.000Z","dependencies_parsed_at":"2022-09-03T10:22:25.237Z","dependency_job_id":null,"html_url":"https://github.com/just-do-halee/collectfiles","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/just-do-halee%2Fcollectfiles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/just-do-halee%2Fcollectfiles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/just-do-halee%2Fcollectfiles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/just-do-halee%2Fcollectfiles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/just-do-halee","download_url":"https://codeload.github.com/just-do-halee/collectfiles/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/just-do-halee%2Fcollectfiles/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259101149,"owners_count":22805215,"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":["collect","directory","file","parallel","rayon","regex","simple","walk"],"created_at":"2025-05-19T00:17:50.826Z","updated_at":"2025-06-10T15:30:57.858Z","avatar_url":"https://github.com/just-do-halee.png","language":"Rust","funding_links":["https://github.com/sponsors/just-do-halee"],"categories":[],"sub_categories":[],"readme":"## ***`collectfiles`***\n\n---\n\nCollects accurate files while running in parallel through directories. (Simple, Fast, Powerful)\n\n\n[![CI][ci-badge]][ci-url]\n[![Crates.io][crates-badge]][crates-url]\n[![Licensed][license-badge]][license-url]\n[![Twitter][twitter-badge]][twitter-url]\n\n[ci-badge]: https://github.com/just-do-halee/collectfiles/actions/workflows/rust.yml/badge.svg\n[crates-badge]: https://img.shields.io/crates/v/collectfiles.svg?labelColor=383636\n[license-badge]: https://img.shields.io/crates/l/collectfiles?labelColor=383636\n[twitter-badge]: https://img.shields.io/twitter/follow/do_halee?style=flat\u0026logo=twitter\u0026color=4a4646\u0026labelColor=333131\u0026label=just-do-halee\n\n[ci-url]: https://github.com/just-do-halee/collectfiles/actions\n[twitter-url]: https://twitter.com/do_halee\n[crates-url]: https://crates.io/crates/collectfiles\n[license-url]: https://github.com/just-do-halee/collectfiles\n| [Docs](https://docs.rs/collectfiles) | [Latest Note](https://github.com/just-do-halee/collectfiles/blob/main/CHANGELOG.md) |\n\n```toml\n[dependencies]\ncollectfiles = \"1.1.0\"\n```\n\n---\n\n# Example\n```rust\nuse collectfiles::*;\n\nlet vec = CollectFiles(\"/Users/hwakyeom/programs/\")\n        .with_depth(1)\n        .with_target_regex(\".md$\")\n        .with_hook(|path| path.with_extension(\"mutated\"))\n        .with_unwrap_or_else(|e| {\n            if e.kind() == io::ErrorKind::NotFound {\n                PathBuf::from(\"/Users/other/\")\n            } else {\n               panic!(\"{:?}\", e)\n            }\n        })\n        .collect();\n\nprintln!(\"{:#?}\", vec);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjust-do-halee%2Fcollectfiles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjust-do-halee%2Fcollectfiles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjust-do-halee%2Fcollectfiles/lists"}