{"id":16115548,"url":"https://github.com/byron/trash-rs","last_synced_at":"2025-12-12T16:49:29.649Z","repository":{"id":39824085,"uuid":"195042940","full_name":"Byron/trash-rs","owner":"Byron","description":"A Rust library for moving files to the Recycle Bin","archived":false,"fork":false,"pushed_at":"2024-08-31T15:48:29.000Z","size":520,"stargazers_count":168,"open_issues_count":14,"forks_count":28,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-10T20:19:00.573Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Byron.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","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}},"created_at":"2019-07-03T11:46:38.000Z","updated_at":"2024-09-28T06:14:42.000Z","dependencies_parsed_at":"2023-02-16T06:31:34.629Z","dependency_job_id":"dd563723-45db-4e71-8526-d37eb1aaafc3","html_url":"https://github.com/Byron/trash-rs","commit_stats":{"total_commits":228,"total_committers":24,"mean_commits":9.5,"dds":0.5263157894736843,"last_synced_commit":"d7abb5bb735827b88479fc4879dcfcdcae6e08df"},"previous_names":["arturkovacs/trash"],"tags_count":35,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Byron%2Ftrash-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Byron%2Ftrash-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Byron%2Ftrash-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Byron%2Ftrash-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Byron","download_url":"https://codeload.github.com/Byron/trash-rs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247713258,"owners_count":20983683,"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-10-09T20:19:06.876Z","updated_at":"2025-12-12T16:49:29.606Z","avatar_url":"https://github.com/Byron.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n[![Crates.io](https://img.shields.io/crates/v/trash?color=mediumvioletred)](https://crates.io/crates/trash)\n[![Docs.rs](https://docs.rs/trash/badge.svg)](https://docs.rs/trash)\n[![CI](https://github.com/Byron/trash-rs/actions/workflows/rust.yml/badge.svg)](https://github.com/Byron/trash-rs/actions/workflows/rust.yml)\n\n\n## About\n\nThe `trash` is a Rust library for moving files and folders to the operating system's Recycle Bin or Trash or Rubbish Bin or what have you :D\n\nThe library supports Windows, macOS, and all FreeDesktop Trash compliant environments (including GNOME, KDE, XFCE, and more). \nSee more about the FreeDesktop Trash implementation in the `freedesktop.rs` file.\n\n## Usage\n\n```toml\n# In Cargo.toml\n[dependencies]\ntrash = \"3\"\n```\n\n```rust\n// In main.rs\nuse std::fs::File;\nuse trash;\n\nfn main() {\n    // Let's create and remove a single file\n    File::create_new(\"remove-me\").unwrap();\n    trash::delete(\"remove-me\").unwrap();\n    assert!(File::open(\"remove-me\").is_err());\n\n    // Now let's remove multiple files at once\n    let the_others = [\"remove-me-too\", \"dont-forget-about-me-either\"];\n    for name in the_others.iter() {\n        File::create_new(name).unwrap();\n    }\n    trash::delete_all(\u0026the_others).unwrap();\n    for name in the_others.iter() {\n        assert!(File::open(name).is_err());\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbyron%2Ftrash-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbyron%2Ftrash-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbyron%2Ftrash-rs/lists"}