SFTP: how to get information about link target - WeOnlyDo Discussion board

SFTP: how to get information about link target (wodSFTP / wodSFTP.NET / wodSFTPdll)

by Alexey Ischuk, Monday, June 01, 2020, 14:26 (1646 days ago)

Hi,

Could you please help me how to get information about link target? I found that I received answer from server I have no link target information. Is it a bug or I need to check some property? Basically, I need to get something like that:

lrwxrwxrwx 1 alex ustas 1 May 22 15:15 home -> /home

Where "home -> /home" is the information about link target.

Thank you

SFTP: how to get information about link target

by Jasmine, Monday, June 01, 2020, 15:58 (1646 days ago) @ Alexey Ischuk

Hi.

Did you try to use RealPath with that filename? It should return real filename (including path).

Regards,
Jasmine.

SFTP: how to get information about link target

by Alexey Ischuk, Thursday, June 11, 2020, 08:19 (1636 days ago) @ Jasmine

Hi Jasmine,

Thank you very much, it works.
With best regards,
Alexey