Hello.
I am asking a question because of a problem with repeated folder searches in SFTP.
I don't know the exact terminology for this problem, so the explanation is a bit complicated.
When connecting to the Ubuntu server via SFTP, the "/usr/bin/X11" folder became a problem.
In the /usr/bin folder, the X11 folder is linked with ".". (Pointing to your own folder.)
Therefore, when I enter the /usr/bin/X11 folder, there is X11 folder and it goes into the /usr/bin/X11/X11 folder.
Continuing to go in like this is problematic.
When I call ResolveSymlink("/usr/bin/X11") I get "." is returned.
It would be nice if the absolute path was returned, but it only returns Link information.
Is there any SFTP option or command that solves this?
If I can get the actual absolute path like Unix's realpath command,
If it is a link and the actual absolute path is the parent of the requested file/folder, the folder will be hidden or processed as a regular file.
If there is a better way, please let me know.
I have the same problem with FTP, so I would be very grateful if you could tell me how to handle it with FTP.
Thank you
Sincerely.