How to fork experiments with an html folder

Since experiments don’t work in PsychoPy 2021.2 onwards if they have ever had an html folder, I assumed that forking an existing experiment with one wouldn’t work either. However, following a suggestion from @Becca, I’ve discovered that it is actually very easy.

  1. Fork the experiment.
  2. Search and sync from Builder.
  3. While opening the synced psyexp file in Builder, delete the html folder.
  4. Remove html from the output path in Experiment Settings / Online
  5. Sync again.
  6. Set the experiment to piloting online to check.

The key is that an experiment must not be set to piloting (or possibly piloting is okay but not running) until the output path has been cleared.