Crates.io | pchmod |
lib.rs | pchmod |
version | 0.1.0 |
source | src |
created_at | 2019-03-15 20:34:56.090914 |
updated_at | 2019-03-15 20:34:56.090914 |
description | Changes the access permissions of files or directories. |
homepage | |
repository | https://github.com/Gregory-Meyer/pchmod |
max_upload_size | |
id | 121120 |
size | 15,784 |
pchmod
pchmod
is a utility to manage the permissions of files and directories on
Unix systems.
cargo install pchmod
pchmod --help
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
.
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.