permissions

Permissions crate

Crates.io License Docs.rs

Useful filesystem queries for file permissions:

See functions. - is_executable - is_readable - is_writable - is_removable - is_creatable

See [functions].

Windows support

This library now supports Windows, however, it hasn't been fully tested.

Please, open an issue if you find any problems.

Examples:

```rust use permissions::*;

fn main() -> std::io::Result<()> { // Functions accept AsRef<Path> assert!(isreadable("src/")?); assert!(iswritable("src/")?); assert!(iswritable("src/lib.rs")?); assert!(isexecutable("/usr/bin/cat")?); assert!(isremovable("src/lib.rs")?); assert!(iscreatable("src/file.rs")?);

Ok(()) } ```

Future

I plan on adding a rwx permission interface, but I never needed it.

If you need it, create an issue.

Helping/Contributing:

It's easy to contribute to this crate, here are some options: - Share it to a friend. - Help improve this README or other docs (even little details). - Open an issue or PR in the repository. - Use it and give feedback. - Suggest how to improve.