is it possible to download some (lets say 200) files in the setupstage and save them to disk and then use those files in the vu code?
I want to download the files so I can VUs can use different files for uploading.
Thanks in advance
you can’t store the files to disk since k6 doesn’t expose an API to do so, for several reasons (see issue #666 ).
You could store them in memory in an object and access them in the
default function, but that will be very inneficient since each VU would have a copy of the data. Take a look at this discussion for some tips on how to handle this.