Create an async iterator that yields paths that match requested glob pattern
import { unixfs, globSource } from '@helia/unixfs'import { createHelia } from 'helia'const helia = await createHelia()const fs = unixfs(helia)for await (const entry of fs.addAll(globSource( '/path/to/dir', '**/*'), { wrapWithDirectory: true})) { console.info(entry)} Copy
import { unixfs, globSource } from '@helia/unixfs'import { createHelia } from 'helia'const helia = await createHelia()const fs = unixfs(helia)for await (const entry of fs.addAll(globSource( '/path/to/dir', '**/*'), { wrapWithDirectory: true})) { console.info(entry)}
Create an async iterator that yields paths that match requested glob pattern