unix_mode 0.1.3

Decode Unix file mode bits (even on non-Unix platforms)
Documentation
# unix\_mode Rust library

[![crates.io](https://img.shields.io/crates/v/unix_mode.svg)](https://crates.io/crates/unix_mode)
[![docs.rs](https://docs.rs/unix_mode/badge.svg)](https://docs.rs/unix_mode)
[![Tests](https://github.com/sourcefrog/unix_mode/workflows/rust/badge.svg)](https://github.com/sourcefrog/unix_mode/actions?query=workflow%3Arust)

This library provides functions to decode and print Unix mode bits /
permissions, even on non-Unix platforms.

On Unix, decoding is supported by `std::os::unix::fs` in the standard library,
but this crate adds a function to render them in the format used by `ls -l`,
and to understand the file type and permissions.

    assert_eq!(unix_mode::to_string(0o0040755), "drwxr-xr-x");
    assert_eq!(unix_mode::to_string(0o0100640), "-rw-r-----");
    
    assert_eq!(unix_mode::is_symlink(0o0040755), false);

For API documentation see <https://docs.rs/unix_mode>.

## License

Apache-2.0.

## Contributing

Patches are very welcome.

Please read the
[contribution guidelines](CONTRIBUTING.md) and
[code of conduct](CODE_OF_CONDUCT.md).

## Disclaimer

This is not an official Google project. It is not supported by Google, and
Google specifically disclaims all warranties as to its quality, merchantability,
or fitness for a particular purpose.