Re: Problem parsing list output : no automatic mirror nor browse is possible

Alexander Lukyanov <[email protected]> Thu, 11 May 2017 17:03:18 +0000
Newsgroups gmane.network.lftp.user
Message-ID <CANnoEwrbi5ODeexOL-TQ6R8bu793JWK4BHfa7o8=Wks_yk7qOw@mail.gmail.com>
--===============5895201463069562422==
Content-Type: multipart/alternative; boundary=001a113cd50a60997e054f4291bd

--001a113cd50a60997e054f4291bd
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

I'll add a workaround. Thanks for the report!

=D1=87=D1=82, 11 =D0=BC=D0=B0=D1=8F 2017, 19:58 Franck Eyraud <franck+lftp@=
nospam.yrnm.net>:

> Hello,
>
> I have the problem with a FTP server, mirroring is not taking into accoun=
t
> any folder for recursion. I think I noticed why: when running ls command,
> all folders are suffixed with a slash, this doesn't happen on other FTP
> servers I tried. It seems that this cause lftp to completely ignore them.
>
>
> dr-x------   3 user group            0 May 11 16:33 folder1/
> dr-x------   3 user group            0 May 11 16:33 folder2/
> dr-x------   3 user group            0 May 11 16:33 folder3/
> dr-x------   3 user group            0 May 11 16:33 folder4/
>
> cls command return an empty list, du gives output "./ 0", as if no folder
> where present there.
>
> The debug .mplist command gives :
>
> Size=3D4096;Modify=3D20170511162938.894;Type=3Ddir;Perm=3Del; folder1/
> Size=3D4096;Modify=3D20170511162938.894;Type=3Ddir;Perm=3Del; folder2/
> Size=3D4096;Modify=3D20170511162938.894;Type=3Ddir;Perm=3Del; folder3/
> Size=3D4096;Modify=3D20170511162938.894;Type=3Ddir;Perm=3Del; folder4/
>
> I tried to look for some parameter, for instance use-msld or list-options
> (but what option to provide), but it doesn't change.
>
> Manually changing directory with cd, and mirroring files work correctly.
>
> I can understand that the FTP server is buggy, but is there a way to work
> around that ?  Of course, I have no control over the server, that would b=
e
> too easy, I have to deal with this, and download data from there...
>
> Thank you !
>
> Franck
> _______________________________________________
> lftp mailing list
> [email protected]
> http://univ.uniyar.ac.ru/mailman/listinfo/lftp
>

--001a113cd50a60997e054f4291bd
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<p dir=3D"ltr">I&#39;ll add a workaround. Thanks for the report! </p>
<br><div class=3D"gmail_quote"><div dir=3D"ltr">=D1=87=D1=82, 11 =D0=BC=D0=
=B0=D1=8F 2017, 19:58 Franck Eyraud &lt;<a href=3D"mailto:franck%2Blftp@nos=
pam.yrnm.net">[email protected]</a>&gt;:<br></div><blockquote cla=
ss=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;pa=
dding-left:1ex">
 =20

   =20
 =20
  <div bgcolor=3D"#FFFFFF" text=3D"#000000">
    <font face=3D"Times New Roman, Times, serif">Hello,<br>
      <br>
      I have the problem with a FTP server, mirroring is not taking into
      account any folder for recursion. I think I noticed why: when
      running ls command, all folders are suffixed with a slash, this
      doesn&#39;t happen on other FTP servers I tried. It seems that this
      cause lftp to completely ignore them.<br>
    </font><tt><br>
    </tt><tt><br>
      dr-x------=C2=A0=C2=A0 3 user group=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 0 May 11 16:33 folder1/</tt><tt><br>
    </tt><tt>dr-x------=C2=A0=C2=A0 3 user group=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 0 May 11 16:33
      folder2/</tt><tt><br>
    </tt><tt>dr-x------=C2=A0=C2=A0 3 user group=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 0 May 11 16:33
      folder3/</tt><tt><br>
    </tt><tt>dr-x------=C2=A0=C2=A0 3 user group=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 0 May 11 16:33
      folder4/</tt><tt><br>
    </tt><font face=3D"Times New Roman, Times, serif"><br>
      cls command return an empty list, du gives output &quot;./ 0&quot;, a=
s if no
      folder where present there.<br>
      <br>
      The debug .mplist command gives :<br>
    </font><tt><br>
    </tt><tt>Size=3D4096;Modify=3D20170511162938.894;Type=3Ddir;Perm=3Del; =
</tt><tt>folder1/<br>
      Size=3D4096;Modify=3D20170511162938.894;Type=3Ddir;Perm=3Del; </tt><t=
t>folder2/<br>
      Size=3D4096;Modify=3D20170511162938.894;Type=3Ddir;Perm=3Del; </tt><t=
t>folder3/<br>
      Size=3D4096;Modify=3D20170511162938.894;Type=3Ddir;Perm=3Del; </tt><t=
t>folder</tt><tt>4</tt><tt>/</tt><tt><br>
    </tt><font face=3D"Times New Roman, Times, serif"><br>
    </font><font face=3D"Times New Roman, Times, serif"><font face=3D"Times
        New Roman, Times, serif">I tried to look for some parameter, for
        instance use-msld or list-options (but what option to provide),
        but it doesn&#39;t change.<br>
        <br>
        Manually changing directory with cd, and mirroring files work
        correctly.<br>
      </font><br>
      I can understand that the FTP server is buggy, but is there a way
      to work around that ?=C2=A0 Of course, I have no control over the
      server, that would be too easy, I have to deal with this, and
      download data from there...<br>
      <br>
      Thank you !<br>
      <br>
      Franck<br>
    </font>
  </div>

_______________________________________________<br>
lftp mailing list<br>
<a href=3D"mailto:[email protected]" target=3D"_blank">[email protected]</a=
><br>
<a href=3D"http://univ.uniyar.ac.ru/mailman/listinfo/lftp" rel=3D"noreferre=
r" target=3D"_blank">http://univ.uniyar.ac.ru/mailman/listinfo/lftp</a><br>
</blockquote></div>

--001a113cd50a60997e054f4291bd--

--===============5895201463069562422==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
lftp mailing list
[email protected]
http://univ.uniyar.ac.ru/mailman/listinfo/lftp

--===============5895201463069562422==--