{"id":16373119,"url":"https://github.com/bbqsrc/windirs","last_synced_at":"2026-03-20T11:30:14.356Z","repository":{"id":57672200,"uuid":"345170442","full_name":"bbqsrc/windirs","owner":"bbqsrc","description":"A safe wrapper around `SHGetKnownFolderPath`.","archived":false,"fork":false,"pushed_at":"2021-03-06T19:54:27.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-01T02:18:00.344Z","etag":null,"topics":["folders","rust","windows"],"latest_commit_sha":null,"homepage":"https://docs.rs/windirs/","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/bbqsrc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-03-06T18:49:34.000Z","updated_at":"2021-05-30T18:47:01.000Z","dependencies_parsed_at":"2022-08-30T20:01:31.455Z","dependency_job_id":null,"html_url":"https://github.com/bbqsrc/windirs","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbqsrc%2Fwindirs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbqsrc%2Fwindirs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbqsrc%2Fwindirs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbqsrc%2Fwindirs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bbqsrc","download_url":"https://codeload.github.com/bbqsrc/windirs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239933237,"owners_count":19720751,"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":["folders","rust","windows"],"created_at":"2024-10-11T03:13:24.836Z","updated_at":"2026-03-20T11:30:14.312Z","avatar_url":"https://github.com/bbqsrc.png","language":"Rust","readme":"# windirs\n\n[![Documentation](https://docs.rs/windirs/badge.svg)](https://docs.rs/windirs)\n\nA safe wrapper around `SHGetKnownFolderPath`.\n\n## Usage\n\n```rust\nuse windirs::{Error, FolderId, get_known_folder};\n\nlet local_app_data_path = match get_known_folder(FolderId::LocalAppData) {\n    Ok(path) =\u003e path,\n    Err(err) =\u003e match err {\n        // Some folder ids point to virtual paths, so, yeah.\n        Error::Virtual =\u003e panic!(),\n        // When no folder is found.\n        Error::NotFound =\u003e panic!(),\n        // Can occur for a variety of reasons, such as this folder id being unknown to this OS.\n        Error::InvalidArg(io_error) =\u003e panic!(),\n        // Any other potential OS error that could happen, but is not defined by the API.\n        Error::Other(io_error) =\u003e panic!(),\n    }\n}\n\nlet user_home_path = get_known_folder(FolderId::Profile).unwrap();\n```\n\n### License\n\nThis project is licensed under either of\n\n * Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)\n * MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)\n\nat your option.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbbqsrc%2Fwindirs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbbqsrc%2Fwindirs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbbqsrc%2Fwindirs/lists"}