k6 extension for dealing with the file system, implemented using the xk6 system.
xk6 build --with github.com/faunists/xk6-fs@latest
import file from 'k6/x/fs';
const root = 'samples';
export default function () {
const jsFiles = file.walkMatch(root, '*.js');
console.log(jsFiles)
}
make run-sample
then you should see something like:\
INFO[0000] ["samples/falcon.js","samples/tiger.js"] source=console