This one might be a bit tricky.
I have a samba mount in Windows, mounted from a local Linux devbox. The projects on this mount contain a lot of symlinked directories. They all work fine and look like normal directories to Windows. What I'd like to do is figure out for a given file what its real UNIX path is.
The context is: in my editor I have a script that runs the Perforce open command, to which I pass the file location.
p4.exe edit FILE_LOCATION
However, perforce will not understand this FILE_LOCATION, if on the Linux side part of the path is a symlink. It needs to know the real path.
What I need is something along the lines of the Linux readlink
command, which resolves symlinks in paths.
If anyone ever solved this problem, I'd appreciate if you could share it with us.
Thank you.