Skip to content

k6 extension for dealing with the file system

Notifications You must be signed in to change notification settings

faunists/xk6-fs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

k6 extension for dealing with the file system

Resources

Stars

Watchers

Forks

Packages

No packages published