1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:28:12 +00:00

rmdir: Add -p option to remove all directories in each given path

This commit is contained in:
Tim Ledbetter 2023-06-19 18:20:21 +01:00 committed by Jelle Raaijmakers
parent 063efe9cf8
commit 307dc00ee0
2 changed files with 36 additions and 7 deletions

View file

@ -12,6 +12,10 @@ $ rmdir `[directory...]`
Remove given `directory(ies)`, if they are empty
## Options
* `-p`, `--parents`: Remove all directories in each given path
## Arguments
* `directory`: directory(ies) to remove
@ -31,4 +35,7 @@ $ ls -a example
$ rmdir example
$ ls -a example
example: No such file or directory
# Removes foo/bar/baz/, foo/bar/ and foo/
$ rmdir -p foo/bar/baz/
```