Comments (6)
@Palpie Thanks for reporting, that is a globbing issue (isaacs/node-glob#248).
from del.
Using cwd
may be a possible workaround:
del(['test/assets/**', '!test/assets', '!test/assets/goat.png'], {
cwd: '/build',
dryRun: true
}) // …
from del.
It works fine with cwd
and it actually made my real code look nicer!
Thanks!
from del.
I am experiencing the same problem, but CWD does not work in my case/ I have the following code:
// delete task
gulp.task( 'delete', function() {
return del([
'../../../project/app/myfolder/**',
'!../../../project/app/myfolder',
'!../../../project/app/myfolder/json/**',
],
{
force: true,
});
});
And also tried:
// delete task
gulp.task( 'delete', function() {
return del([
'/myfolder/**',
'!/myfolder',
'!/myfolder/json/**',
],
{
cwd: '../../../project/app',
force: true,
});
});
How can I make it wrong, is there a mistake in the code?
from del.
@kevinmamaqi I ran into the same problem,how did you solve it in the end
from del.
@Ch2x I think a did a shell script at the end.
from del.
Related Issues (20)
- Add `progress` event
- Filenames with parentheses not deleted
- why 'del' restores the files I have deleted using 'rimraf'
- 5. X and 6 X performs wildcard recursive directory deletion, which is invalid
- Weird problem in the npm page HOT 1
- Upgrade: v7 convert to ESM lets Disscuse the API HOT 6
- Error: Cannot delete files/directories outside the current working directory HOT 1
- Release Notes for version 7 are incorrect HOT 1
- Build fail when using Babel HOT 3
- Couldn't delete dot files in del7.0.0 HOT 1
- [v8] Make the `dot` option true by default?
- Cannot find module 'del' HOT 1
- TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" HOT 2
- Protocol 'node:' not supported HOT 1
- Add path to ProgressData
- Build is failing in CI HOT 2
- Update supported engines to >=16 HOT 1
- Why not use rollup to provide a commonjs module? HOT 1
- Unable to require/import this module into gulp HOT 1
- [ava, xo] Some internal modules are deprecated. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from del.