Synchronously scan a root directory recursively for files that match this glob pattern. Returns an iterator.
Symbol
Glob.scanSync
const glob = new Glob("*.{ts,tsx}");
const scannedFiles = Array.from(glob.scan({ cwd: './src' }))
Symbol
Synchronously scan a root directory recursively for files that match this glob pattern. Returns an iterator.
const glob = new Glob("*.{ts,tsx}");
const scannedFiles = Array.from(glob.scan({ cwd: './src' }))