This script runs on VTEX /admin/a. It opens all the subfolders from a selected folder and return it as a Set(very similar to array). At the bottom of file I convert it to string to be copied to other uses.
- set the selectedDirectory variable at the bottom of the script
- set the websiteurl variable at the bottom of the script
- Enter in /admin/a
- open CMS folder
- open Sites and channels folder
- open selected website
- open the root folder "/"
- run the script in console