bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-wget] Contribution on bug #45037


From: Ángel González
Subject: Re: [Bug-wget] Contribution on bug #45037
Date: Tue, 19 May 2015 23:17:11 +0200
User-agent: Thunderbird

On 18/05/15 08:43, Ander Juaristi wrote:
On 05/17/2015 07:02 PM, Ángel González wrote:
It's not possible to create a symlink with HTTP, so it's not a problem there. And although I thought it was possible with FTP (I can certainly see symlinks on FTP servers), a brief test
sugests that wget doesn't mirror them, either?

Actually, an FTP client cannot know whether the resource some URI points to is a regular file or a symlink. Theoretically, you could tell that by looking at the symlink bit, but if you request a symlink to the server, it will return you the contents of the symlink'd file, not the contents of the symlink itself. This makes total sense. What's more, in the case of OpenSSH SFTP, this seems to be the only behaviour and does not seem to be overridable. Chances are other FTP servers
mimic this behaviour.

TL;DR From the point of view of the client, symlinks in the server are regular files as well.
You get that information when fetching the directory listing, although I can guess some issues with eg. symlink filenames containing " -> "





reply via email to

[Prev in Thread] Current Thread [Next in Thread]