Overview
Features
Download
Documentation
Community
Add-Ons & Services

how do I get the value of a symbolic link?

A general discussion forum.
marlowabnp
Posts: 89
Joined: 08 Nov 2010, 17:29

how do I get the value of a symbolic link?

Postby marlowabnp » 08 Dec 2010, 16:14

How do I get the value of a symbolic link please? I have searched poco Foundation and not been able to find anything.

Regards,

Andrew Marlow

guenter
Posts: 1178
Joined: 11 Jul 2006, 16:27
Location: Austria

Re: how do I get the value of a symbolic link?

Postby guenter » 10 Dec 2010, 21:41

This is currently not implemented in POCO. POSIX provides the readlink() function, which does exactly what you need.

marlowabnp
Posts: 89
Joined: 08 Nov 2010, 17:29

Re: how do I get the value of a symbolic link?

Postby marlowabnp » 14 Dec 2010, 16:44

Ok. Thanks for the reply.

I have my own implementation for readySymbolicLink which uses readlink for POSIX and uses a tonne of horrible undocumented stuff for WIN32. I found a few WIN32 nasties along the way to do with Unicode filename conversions. Yuck. Is there any chance that the facility will be added to Poco in the future? One of Poco's strengths is that it allows you to work on posix or windoze without having to care about the wildly different OS APIs...

-Andrew M.

marlowabnp
Posts: 89
Joined: 08 Nov 2010, 17:29

Re: how do I get the value of a symbolic link?

Postby marlowabnp » 22 Mar 2011, 18:49

I really want to see a portable read symbolic link routine added to Poco. I am ready to help with this since I have already implemented the tricky bit in Windoze. How might this issue be moved forward please?

-Andrew M.

guenter
Posts: 1178
Joined: 11 Jul 2006, 16:27
Location: Austria

Re: how do I get the value of a symbolic link?

Postby guenter » 22 Mar 2011, 19:29

Please send your contribution to poco <at> pocoproject.org. I'll then add it to the next release.


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 1 guest

cron