Comments (4)
I still for the life of me can't figure out how to use this library (since v5.x) to accomplish the specific use case above. Namely, to delete content based on a pattern such as /opt/folder?/?
. It works with v4.x but not with anything later. The first issue you linked to in fast-glob has been closed, and I don't see how the second one affects my scenario (I'm not trying to match folders at the root). I can't seem to get an even simpler pattern of something like /opt/folder?/file1.txt
to work. Using the ?
wildcard anywhere except in the basename portion of the path seems to break things.
Can anyone point to a test repo using the latest version of this library where a pattern like /opt/folder?/?
or /opt/folder?/file1.txt
actually works? This seems like pretty basic glob usage. I'm about to give up and look elsewhere at this point. I could stay with v4.x but then I'm stuck with outdated dependencies.
from del.
@sindresorhus Can you give any feedback? Either I'm missing something very basic or something is very wrong in the new behavior. If the new behavior is to be expected then it would seem some major documentation changes are in order for how to write glob patterns.
from del.
This might be related to the following issues:
Just a guess. I don't really have the time to look further into this right now.
from del.
I've tried to do some diagnostics on what might be going on and have now opened the following issue in the glob-parent
repo:
gulpjs/glob-parent#39
glob-parent
is used by fast-glob
so I'm thinking that issue may be the cause of my problems. That is unless I'm completely mistaken about the issue and it somehow is expected behavior (in which case I'm back to square one). Hopefully someone will respond to that issue soon so I can get some useful feedback.
from del.
Related Issues (20)
- Delete all content except the folder HOT 3
- Plugin is not working with Electron App HOT 1
- 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 1
- 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
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.