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.
When using the following combination of features, I'm seeing zero matches:
withBasePathglob(when the glob does not traverse directories)crawl('dirname')(i.e. it does not reproduce for the current directory, perhaps due to the fix for Corner case when globbing current directory returns zero results #92)Assuming
txtfiles exist in acontentdirectory, the following simple program demonstrates the issue: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.