I’m trying to access this folder in a controller
ModuleID\omod\src\main\resources
I tried
ModuleUtil.getDevelopmentDirectory(“ModuleID”).list()
Which produces NullPointerException.
I’m trying to access this folder in a controller
ModuleID\omod\src\main\resources
I tried
ModuleUtil.getDevelopmentDirectory(“ModuleID”).list()
Which produces NullPointerException.
Try WebModuleUtil.getModuleWebFolder("YOUR-MODULE-ID")
, this returns the path to the root directory for your module resources.