-
-
Save ugexe/6faa8b2e79e6e527c936ff57cde0b8ec to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { fdir } = require("fdir"); | |
const api = new fdir() | |
.exclude((dirName, dirPath) => dirName.startsWith(".")) | |
.withFullPaths() | |
// .withSymlinks() // with this line uncommented it takes 12s instead of 1s to crawl home directory | |
.crawl("/Users/nlogan") | |
; | |
const files = api.sync(); | |
console.log(files.length); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment