1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:27:44 +00:00

mkdir: Implement --mode option

Only supports permissions given in octal format
at the moment.
This commit is contained in:
Xavier Defrang 2021-12-19 21:47:41 +01:00 committed by Brian Gianforcaro
parent 1255316d26
commit 6ca34f5647
2 changed files with 26 additions and 5 deletions

View file

@ -15,11 +15,13 @@ Create a new empty directory for each of the given *directories*.
## Options
* `-p`, `--parents`: Create parent directories if they don't exist
* `-m`, `--mode`: Sets the permissions for the final directory (possibly altered by the process umask). The mode argument must be given in octal format.
## Examples
```sh
$ mkdir -p /tmp/foo/bar
$ mkdir -m 0700 /tmp/owner-only
```
## See also