Skip to content

Simple globs fail when withBasePath is used #168

Description

@bdukes

When using the following combination of features, I'm seeing zero matches:

Assuming txt files exist in a content directory, the following simple program demonstrates the issue:

import { fdir } from "fdir";

const files = new fdir().withBasePath().glob('*.txt').crawl('content');
console.log(files);

I've created an example reproduction at https://github.com/bdukes/fdir-issue-reproduction which uses CLI flags to demonstrate that it's only the combination of these features that causes an issue, but adjusting any one of them will give the expected results.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions