Return a valid mode given digits

Share:

Description

Return a valid mode given digits

Usage

1
valid.mode(mode, digits = 4)

Arguments

mode

character, the mode of the path, see dir.create.

digits

numeric, either 3 or 4.

Value

mode

Author(s)

Xiaobei Zhao

Examples

1
2
valid.mode("777",4)
valid.mode("0777",3)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.