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