Open
Description
Nature of issue?
- Found a bug
Details about the bug:
This is a related issue to #842, but requires a more in-depth refactoring to fix.
- Steps to reproduce this bug:
- Create a folder called
root
. The folder is created, but shows up as blank in the sidebar due to the special behavior for a directory based on this name.
You can also cause a crash by doing the following:
- Create a folder named something that isn't 'root', and add a file to it.
- Rename the folder to 'root' and save the project.
- When you next load the project, it will crash the front-end. (Example sketch: https://editor.p5js.org/meiamsome/sketches/cyNfPGeDu )