Creating Files and Subfolders in CloudCode

How do you create a new subfolder or a new file in CloudCode?

A new default template CloudCode task will have two files by default:

![Default Files](upload://bpj9AS7PCjMZ1TWYPgzWtq0JCWe.png)

To add a new file, e.g. an html file, replace index.js in the browser url to index.html

Make an edit to that file and click "Test Task", then reload the browser to see the new file in the dropdown menu:

![Newly added file](upload://4HNLH7J8WurwxlpkhxvsHSdhVFV.png)

3 Likes

Update: In OXIDE, a new file can be created with the “Create CloudCode File” action (available from the Command Palette or by right-clicking on the CloudCode task or a subfolder). Simply enter the file name after triggering this action.

A subfolder can be created when creating a new file, by prepending the folder name separated by a “/”. For example, “css/style.css” creates a css folder, containing the style.css file.