]> sjero.net Git - wget/commitdiff
stsc: FTP -nv --spider: say something about existant files, too.
authorMicah Cowan <micah@cowan.name>
Thu, 26 Jun 2008 18:01:48 +0000 (11:01 -0700)
committerMicah Cowan <micah@cowan.name>
Thu, 26 Jun 2008 18:01:48 +0000 (11:01 -0700)
src/ChangeLog
src/ftp.c

index 3df8ddaeb848fffa55f20aaba5c3b1f6b8d551c0..d0e26e41a358a3fadf0e2d5a0f037f16cdcd7102 100644 (file)
@@ -1,3 +1,8 @@
+2008-06-25  Steven Schubiger  <stsc@members.fsf.org>
+
+       * ftp.c (getftp): When spidering a FTP URL, emit a diagnostic
+       message if the remote file exists.
+
 2008-06-24  Steven Schubiger  <stsc@members.fsf.org>
 
        * http.c (http_loop): Replace escnonprint() occurence with
index 7256faa360b24252906cf1f7a91394807bb74e88..482651be62cd769f94ab404d25fc69297a0cc03f 100644 (file)
--- 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));