Quote:
Originally posted by Hko
Ehh, when you use realpath() to find the 'resolved path', you are passing it the path you want as it's first argument. So if you are using realpath() you already know the path you are looking for...
(or do I understand you wrong? must be...)
|
I pass to realpath the relative path name of my symlink
and it returns me the resolved absolute name of the target.
eg.
~/
bar.txt
bar2.txt --> bar2.txt
realpath( "bar2.txt", buf ) (assuming CWD is ~) returns
/home/users/myacc/bar.txt
What I want is to resolve bar2.txt to
/home/users/myacc/bar2.txt