alexcrichton / tar-rs

Tar file reading/writing for Rust
https://docs.rs/tar
Apache License 2.0
625 stars 184 forks source link

Request: Add a convenient way to inspect executable bit #342

Open KSXGitHub opened 11 months ago

KSXGitHub commented 11 months ago

Currently, the only way to inspect executable bit is to filter header.mode() through an executable bitmask (S_IXUSR = 64). This makes the code overly verbose and hard to understand.

It would be more convenient to add is_executable method to the header type or entry type.