GithubHelp home page GithubHelp logo

Comments (4)

dlong500 avatar dlong500 commented on May 28, 2024 1

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.

dlong500 avatar dlong500 commented on May 28, 2024

@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.

sindresorhus avatar sindresorhus commented on May 28, 2024

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.

dlong500 avatar dlong500 commented on May 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.