Files
walkrs/example/main.ts
T
Jonathan Jogenfors 41a2a21bd7 fix: separate data and error arrays (#49)
* fix: separate data and error arrays

* serialize immediately
2026-09-23 16:55:17 -04:00

11 lines
219 B
TypeScript

import { walk } from '@immich/walkrs';
const path = process.argv[2] || '/';
const files: string[] = [];
for await (const batch of walk({ paths: [path] })) {
files.push(...batch.files);
}
console.log(files.length);