How can I access my images folder from my experiment.js file? Both are in the same repository on Pavlovia. I want to create a list of all the images in this file. I tried to use …
const fs = require(‘fs’);
const images = fs.readdirSync(’/images’)
But it is throwing an error from the ‘require’ line. Any other suggestions?