Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 592 Bytes

README.md

File metadata and controls

29 lines (24 loc) · 592 Bytes

xk6-fs

k6 extension for dealing with the file system, implemented using the xk6 system.

Build

xk6 build --with github.com/faunists/xk6-fs@latest

Example

import file from 'k6/x/fs';

const root = 'samples';

export default function () {
    const jsFiles = file.walkMatch(root, '*.js');
    console.log(jsFiles)
}

Run sample script

make run-sample

then you should see something like:\

INFO[0000] ["samples/falcon.js","samples/tiger.js"]      source=console