bug-wget
[Top][All Lists]
Advanced

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

[Bug-wget] retr-symlinks and directories


From: Matthew Atkinson
Subject: [Bug-wget] retr-symlinks and directories
Date: Wed, 22 Oct 2014 08:29:41 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0

Hi

I was looking at http://savannah.gnu.org/bugs/?20373 and considering how
to test if a symlink points to a directory. 

Would it be reliable enough to try CWD to it if getting it as a file
fails, and set f->type to FT_DIRECTORY if that succeeds? If so, what is
the safest way to restore the original PWD? And what should be done on
error in this case?

The only call to ftp_cwd() is wrapped in code which seems to be there to
deal with VMS. Does this need to be done in this case, and if so should
this be moved into ftp_cwd() or another function so it can be reused?

Any thoughts?

Thanks



reply via email to

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