Skip to content

Add method to convert paths to globsย #240

Closed

Description

@sindresorhus

The change in 3.0.0 that changed it to only allow forward slash paths turned out to be a pain. Anywhere I use fast-glob, I now need to specially normalize paths on Windows.

Would be useful if fast-glob had a .convertToGlob() kinda method, with similar logic to sindresorhus/del@01da91f#diff-168726dbe96b3ce427e7fedce31bb0bcR41-R53.

Maybe there could even be some kind of option to loosen fast-glob, when you don't need glob escaping, but do need to accept both file paths and globs, which is actually the majority of cases, at least for me.

Activity

  1. added this to the 3.x.x milestone on Nov 14, 2019
  2. modified the milestones: 3.x.x, on Jan 1, 2022
  3. modified the milestones: , 3.x.x on May 6, 2023
  4. modified the milestones: 3.x.x, 3.3.0 on May 13, 2023
  5. mrmlnc commented on May 24, 2023

    @mrmlnc
    Owner

    Fixed in the master by #392. Will be shipped with 3.3.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions