Macro to point to a pages webDAV folder

I would like a macro (or somehing) that let me insert a link to a pages webDAV folder.

Support told me to use something like:
$action.getGlobalSettings().getBaseUrl()
$content.getUrlPath()?

But I cant get it to work.

regards Nikolaj

Give an example of a page and the corresponding WebDav folder and I’ll take a look.

The page has this URL:
http://confluence.hnint.lan/display/CUSTDGI/Ny+infrastruktur+-+Projektdokumenter

It contains the Attachment macro and this is the WebDAV folder:
\confluence.hnint.lan\webdav\Global\CUSTDGI\Customer - DGI-BYEN\SDM - Salg\Projekter\Projekter 2016 - ny infrastruktur\Ny infrastruktur - Projektdokumenter

It might do the trick, if you could help identifying a variable that contain the webDAV path of a given page.