I checked with one of our devs on this. The most reliable way to get the absolute path isn’t through wwLib functions, but by using the actual asset path directly.
For images:
<website-url>/images/<img-name>
For files:
<website-url>/files/<file-name>
I hope this helps.
You mentioned getting the absolute path of an icon from the project - what is your use case?