mirror of
https://github.com/immich-app/walkrs.git
synced 2026-09-30 13:32:57 +08:00
11 lines
219 B
TypeScript
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);
|