[Openmcl-devel] Relative path symlinks
Ron Garret
ron at flownet.com
Sun May 18 22:14:35 PDT 2014
That is indeed exactly what I was looking for. Thanks!
On May 18, 2014, at 9:23 PM, Raymond Wiker <rwiker at gmail.com> wrote:
> 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
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 455 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <https://lists.clozure.com/pipermail/openmcl-devel/attachments/20140518/593b8943/attachment.bin>
More information about the Openmcl-devel
mailing list