#permissions #directories #recursion #chmod

app pchmod

Changes the access permissions of files or directories

1 unstable release

0.1.0 Mar 15, 2019

#4 in #chmod

MIT license

15KB
326 lines

pchmod

Crates.io

pchmod is a utility to manage the permissions of files and directories on Unix systems.

Installation

cargo install pchmod
pchmod --help

Building From Source

git clone https://github.com/Gregory-Meyer/pchmod.git
cd pchmod
cargo build --release
target/release/pchmod --help

You will then need to copy the binaries from target/release to somewhere in your PATH, like /usr/local/bin.

Usage

pchmod functions almost exactly like chmod from GNU Coreutils, but it runs in parallel with less functionality. All mode settings except 'X' are supported, including multiple symbolic modes (u=rw,g=r,o=r), but only the -R,--recursive flag is supported. Mode changing is done in parallel using Rayon's and logging is done via env_logger; to see permission changes occuring, set the environment variable RUST_LOG=debug. No guarantees are made about the ordering of permission changes due to the nature of Rayon's work-stealing scheduler.

Dependencies

~4–5.5MB
~93K SLoC