files-read-glob.js 265 B

12345
  1. const paths = await __host.worldRead("world-read#1", "glob", ["src/**/*.ts"]);
  2. const first = paths[0] ?? "none";
  3. const content = await __host.worldRead("world-read#2", "read", [first]);
  4. __host.log(`read ${content.length} bytes from ${first}`);
  5. return paths.length;