sindresorhus / del

Delete files and directories
MIT License
1.33k stars 66 forks source link

The example of doc don't work #125

Open luichooy opened 4 years ago

luichooy commented 4 years ago

It don't work while I running the example below.

// To delete all subdirectories inside public/, you can do:
del.sync(['public/*/']);

However, It works correctly as below:

del.sync(['public/*'])

Is this a doc error or a bug? My installed version is "5.1.0"

fredgan commented 4 years ago

I use version 6.0.0, the same result as you.

aotemj commented 3 years ago

same result , version 6.0.0, and I use the del in gulp , gulp version is 4.0.2 ,my gulpfile.js like this

const delHandler = function () {
    return del(['./dist'])
}

module.exports.delHandler = delHandler