xonsh.xoreutils.umask

Implements a umask command for xonsh.

xonsh.xoreutils.umask.current_mask()[source]
xonsh.xoreutils.umask.from_oct_digits(digits)[source]
xonsh.xoreutils.umask.get_numeric_rep_single(rep)[source]

Given a string representation, return the appropriate octal digit. For example, “rw” becomes 6.

xonsh.xoreutils.umask.get_oct_digits(mode)[source]

Separate a given integer into its three components

xonsh.xoreutils.umask.get_symbolic_rep(number)[source]
xonsh.xoreutils.umask.get_symbolic_rep_single(digit)[source]

Given a single octal digit, return the appropriate string representation. For example, 6 becomes “rw”.

xonsh.xoreutils.umask.invert(perms)[source]
xonsh.xoreutils.umask.single_symbolic_arg(arg, old=None)[source]
xonsh.xoreutils.umask.umask(args, stdin, stdout, stderr)[source]
xonsh.xoreutils.umask.valid_numeric_argument(x)[source]