File tree 1 file changed +28
-0
lines changed
1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -96,6 +96,34 @@ const deletedPaths = await deleteAsync(['temp/*.js'], {dryRun: true});
96
96
console .log (' Files and directories that would be deleted:\n ' , deletedPaths .join (' \n ' ));
97
97
```
98
98
99
+ ##### dot
100
+
101
+ Type: ` boolean ` \
102
+ Default: ` false `
103
+
104
+ Allow patterns to match files/folders that start with a period (` . ` ).
105
+
106
+ This option is passed through to [ ` fast-glob ` ] ( https://github.com/mrmlnc/fast-glob#dot ) .
107
+
108
+ Note that an explicit dot in a portion of the pattern will always match dot files.
109
+
110
+ ** Example**
111
+
112
+ ```
113
+ directory/
114
+ ├── .editorconfig
115
+ └── package.json
116
+ ```
117
+
118
+ ``` js
119
+ import {deleteSync } from ' del' ;
120
+
121
+ deleteSync (' *' , {dot: false });
122
+ // => ['package.json']
123
+ deleteSync (' *' , {dot: true });
124
+ // => ['.editorconfig', 'package.json']
125
+ ```
126
+
99
127
##### concurrency
100
128
101
129
Type: ` number ` \
You can’t perform that action at this time.
0 commit comments