From ef113e51d8c80b16902042de7279ef634e7fdc2a Mon Sep 17 00:00:00 2001 From: Micah Cowan Date: Thu, 26 Jun 2008 11:01:48 -0700 Subject: [PATCH] stsc: FTP -nv --spider: say something about existant files, too. --- src/ChangeLog | 5 +++++ src/ftp.c | 10 ++++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 3df8ddae..d0e26e41 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2008-06-25 Steven Schubiger + + * ftp.c (getftp): When spidering a FTP URL, emit a diagnostic + message if the remote file exists. + 2008-06-24 Steven Schubiger * http.c (http_loop): Replace escnonprint() occurence with diff --git a/src/ftp.c b/src/ftp.c index 7256faa3..482651be 100644 --- a/src/ftp.c +++ b/src/ftp.c @@ -805,8 +805,14 @@ Error in server response, closing control connection.\n")); } f = f->next; } - if (!exists) - { + if (exists) + { + logputs (LOG_VERBOSE, "\n"); + logprintf (LOG_NOTQUIET, _("File %s exists.\n"), + quote (u->file)); + } + else + { logputs (LOG_VERBOSE, "\n"); logprintf (LOG_NOTQUIET, _("No such file %s.\n"), quote (u->file));