Closed mark134340 closed 3 years ago
Single folder search is not possible yet. I am working on adding it though. Perhaps in the next version?
This should now be possible as:
const files = new fdir()
.onlyDirs()
.filter((path) => {
return path.endsWith("/composition/examples/src");
})
.crawl("node_modules")
.sync();
console.log(files[0]);
How to search for a folder by its name and return the folder path instead of returning all the parent directories?