{"id":22124407,"url":"https://github.com/robiot/searchpath","last_synced_at":"2026-03-07T23:31:39.386Z","repository":{"id":57666475,"uuid":"425582357","full_name":"robiot/searchpath","owner":"robiot","description":"A small unix and windows lib to search for executables in PATH folders.","archived":false,"fork":false,"pushed_at":"2021-11-07T23:02:24.000Z","size":6,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-02T09:44:43.018Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://crates.io/crates/searchpath","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/robiot.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":"2021-11-07T18:22:03.000Z","updated_at":"2023-12-23T21:05:49.000Z","dependencies_parsed_at":"2022-09-26T20:31:48.897Z","dependency_job_id":null,"html_url":"https://github.com/robiot/searchpath","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/robiot/searchpath","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robiot%2Fsearchpath","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robiot%2Fsearchpath/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robiot%2Fsearchpath/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robiot%2Fsearchpath/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robiot","download_url":"https://codeload.github.com/robiot/searchpath/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robiot%2Fsearchpath/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30237329,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T23:24:20.706Z","status":"ssl_error","status_checked_at":"2026-03-07T23:21:10.486Z","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":"2024-12-01T15:47:46.362Z","updated_at":"2026-03-07T23:31:39.366Z","avatar_url":"https://github.com/robiot.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"A small unix and windows lib to search for executables in path folders.\n\n\nExample:\n```rs\nuse searchpath::search_path;\nuse std::ffi::OsString;\n\nfn main() {\n    let path = std::env::var_os(\"PATH\");\n    let files = search_path(\"ba\", path.as_ref().map(OsString::as_os_str), None);\n    for file in files {\n        println!(\"{}\", file);\n    }\n}\n```\nWill print something like\n```\nbat\nbashbug\nbash\nbase32\nbasenc\nbasename\nbase64\n```\n\nWindows example:\n```rs\nuse searchpath::search_path;\nuse std::ffi::OsString;\n\nfn main() {\n    let path = std::env::var_os(\"path\");\n    let path_ext = std::env::var_os(\"pathext\");\n    let files = search_path(\"explo\", path.as_ref().map(OsString::as_os_str), path_ext.as_ref().map(OsString::as_os_str));\n    for file in files {\n        println!(\"{}\", file);\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobiot%2Fsearchpath","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobiot%2Fsearchpath","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobiot%2Fsearchpath/lists"}