Create WebDev Mounted folder through Scripting

I need my user to be able to add mounted drives ad-hoc in a perspective application.

Is it possible to create the mounted drives through scripting?

There’s no direct scripting method, but as of an early 8.0.X release all webdev resources are just JSON on disk. If you create a mounted folder resource you can see the structure of the config.json - just two object keys. You’ll need to create that JSON, as well as an actual resource.json, and put them into the right location on the filesystem. Once you do, the gateway should automatically detect the changes and notice the resource. You’ll need to manually update your project in the designer.


Awesome! Gotta love the json file based approach in 8!

1 Like