GitHub Workflow Status (with event) Codecov

junk_file: Detect Common Junk Files

This library helps you detect commonly generated junk files like .DS_Store or Thumbs.db.

Features

  1. Detect common junk files such as .DS_Store and Thumbs.db.
  2. Auto-update: Uses GitHub Actions to automatically reflect changes from the original node junk project within a week.

If you discover new junk files, please consider reporting to the original junk project.

Examples

```rust use junk_file::*; use std::ffi::OsString;

asserteq!(isjunk("Thumbs.db"), true); asserteq!(isjunk(OsString::from(".DS_Store")), true); // also OsStr, OsString acceptable

asserteq!(isnotjunk("filename.txt"), true); asserteq!(isnotjunk(OsString::from("filename.txt")), true); ```

License: MIT OR Apache-2.0