New function: system.util.WebDev.GetMountedPath
A
Alex Guyer
A system function that can be used to get the mounted path of a mounted folder. This would allow a gateway script, project library script, or other to call and get the path dynamically so that the path does not have to copied and hard coded anywhere it is used.
Log In
P
Paul Griffith
Can you expand on what you're asking for here? I'm not sure I understand.
If you have the path to a mounted folder resource, you have the path to the mounted URL?
A
Alex Guyer
Paul Griffith Sure!
We define the path to folder in the Web Dev resource, but then have to right click and 'Copy Mounted Path' to be able to use it.
I provided a screen shot of the functionality I envision that would replace having to copy and hard code that path.
An even better version of it could be - '.WebDev.GetFullPath' that would render the complete string built in the screenshot.
P
Paul Griffith
Alex Guyer I don't think you have to wait for us to add this (and if we did, it probably wouldn't be an additional system function).
The
servletRequest
parameter that's automatically delivered to you has a bunch of contextual information about the incoming request, including where it was routed to, that I think you could use to reconstruct this in an entirely dynamic way; see:Including values such as
getLocalAddr()
, getPath()
, etc.