mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-24 11:21:34 +00:00
mkdir: Implement --mode option
Only supports permissions given in octal format at the moment.
This commit is contained in:
parent
1255316d26
commit
6ca34f5647
Notes:
sideshowbarker
2024-07-17 22:26:56 +09:00
Author: https://github.com/xavier
Commit: 6ca34f5647
Pull-request: https://github.com/SerenityOS/serenity/pull/11319
Reviewed-by: https://github.com/bgianfo
2 changed files with 26 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue