| Reference | Downloads | Github

Creating a list images in a directory

URL of experiment:

Description of the problem:
I am trying to convert an offline psychopy study to be used online. As I can not use “import os” with psychojs how can I get a list of files in a folder? My code for this in python is:

import os
Fake_list = os.listdir(“Images/PracticeFake”)
Real_list = os.listdir(“Images/PracticeReal”)

Sorry, I don’t think this works online