We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have a weird case narrowed down where using a glob, a crawl path of ., and the withBasePath option together causes no results to be returned.
.
withBasePath
Reproduction setup:
npm init -y npm pkg set type="module" npm i fdir picomatch mkdir content touch content/file1.txt touch content/file2.txt
Reproduction js:
import { fdir } from "fdir"; const run = async () => { const crawler = new fdir().withBasePath(); crawler.glob("**/*.txt"); const files = await crawler.crawl(".").withPromise(); console.log(files); }; run();
This will log out (on my machine) [].
[]
This only occurs when all three options are configured as so.
.withBasePath()
glob(...)
./**/*.txt
crawler.crawl("content")
crawler.crawl(process.cwd())
I'm on an M1 Macbook, for reference.
The text was updated successfully, but these errors were encountered:
Add workaround for globs in some cases, for thecodrr/fdir#92
6a9fba8
Hi, thanks for reporting this issue! I will take a look at this ASAP.
Sorry, something went wrong.
2cf7738
No branches or pull requests
I have a weird case narrowed down where using a glob, a crawl path of
.
, and thewithBasePath
option together causes no results to be returned.Reproduction setup:
Reproduction js:
This will log out (on my machine)
[]
.This only occurs when all three options are configured as so.
.withBasePath()
causes the files to be foundglob(...)
causes all files in the current directory to be found../**/*.txt
crawler.crawl("content")
orcrawler.crawl(process.cwd())
causes the files to be foundI'm on an M1 Macbook, for reference.
The text was updated successfully, but these errors were encountered: