Per this topic it seems like you can’t Create an asset folder from script? Seems to still not be the case in 2.03. YOu can do so via right click in the asset browser to create a new empty folder though so would be great if this could be exposed, especially since FMOD can’t target the folder as a move target until an audio file is in it.
Also, studio.window.navigateTo() does not target asset folders, however it targets assets. Is this a bug?
Update: also according to this topic you should be able to have a folder created by just using setAssetPath() on the asset. This only kind of works, the folder and assetFolder will get created, but the folder shows as “unimported”, attempting to import it will delete all the files inside of it.
Update 2: Found a workaround, you can use a window trigger action to create a new folder. THe new folder is automatically selected so you can grab it with broswerCurrent and then set its name and that will validate it. This assumes you are in the Assets tab of the editor:
studio.window.triggerActions(studio.window.actions.NewBrowserFolder)
newFolder = studio.window.browserCurrent()
newFolder.setAssetPath(path)