Skip to content

Commit

Permalink
Add tip about deleting subdirectories (#116)
Browse files Browse the repository at this point in the history
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
  • Loading branch information
deadcoder0904 and sindresorhus authored Feb 24, 2020
1 parent 1a0c36c commit 4acd962
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@ You have to explicitly ignore the parent directories too:
del.sync(['public/assets/**', '!public/assets', '!public/assets/goat.png']);
```

To delete all subdirectories inside `public/`, you can do:

```js
del.sync(['public/*/']);
```

Suggestions on how to improve this welcome!


Expand Down

0 comments on commit 4acd962

Please sign in to comment.