[Openmcl-devel] Relative path symlinks

Raymond Wiker rwiker at gmail.com
Sun May 18 21:23:52 PDT 2014


There's a system call named "readlink", which seems to fit your description.

On 19 May 2014, at 02:42 , Ron Garret <ron at flownet.com> wrote:

> If I have the following situation:
> 
> [user at host:/path] ls -l relative-symlink
> lrwxr-xr-x  1 ron  staff  6 May 18 17:39 relative-symlink@ -> ../foo
> 
> Is there a CCL function (or a unix system call) that given the argument “/path/relative-symlink” will return the string “../foo”?
> 
> The reason I need this is that I’m writing a utility to verify the integrity of a backup, so I need to get the raw data out of a symlink, and not the fully resolved path.
> 
> Thanks,
> rg
> 
> _______________________________________________
> Openmcl-devel mailing list
> Openmcl-devel at clozure.com
> http://lists.clozure.com/mailman/listinfo/openmcl-devel




More information about the Openmcl-devel mailing list