in reply to Dereference a filesystem path with softlinks

I'm not sure of a module to do this, but to remove all symlinks from a path, you'd look at each component in the path, check if it's a symlink (with -l), if so get the location of the link (with readlink) and replace that part of the path with the link. You'd have to do this recursively, since symlinks can point to symlinks, and you'd also have to have some kind of loop detection, since there can be circular references.

I have some shell script code which does something similar at:

http://www.suspectclass.com/~sgifford/permcheck/permcheck
which should give a general idea of how you'd go about it.