#202 cURL - List Only

closed-works-for-me
ftp (93)
5
2013-06-21
2002-06-11
Anonymous
No

When ftp'ing using the full url including its sub-
directory, the list-only option only lists the parent
directory. The list-only option does not perform the
appropriate CWD.

Though this can be worked round by using -Q "CWD
[dir]".

Seb

Discussion

  • Daniel Stenberg

    Daniel Stenberg - 2002-06-11

    Logged In: YES
    user_id=1110

    It works fine for me:

    $ curl --list-only ftp.sunet.se/pub/gnu/ -vi

    * gethostbyname_r() uses 200 bytes
    * About to connect() to ftp.sunet.se:21
    * Connected to ftp.sunet.se (194.71.11.20) port 21
    > USER anonymous
    > PASS curl_by_daniel@haxx.se
    * We have successfully logged in
    > PWD
    * Entry path is '/'
    > CWD pub/gnu
    > EPSV
    > PASV
    * About to connect() to ftp.sunet.se:56795
    * Connecting to ftp1.sunet.se (194.71.11.20) port 56795
    * Connected the data stream with PASV!
    > TYPE A
    > NLST
    * Getting file with size: -1
    [ directory output cut out ]
    * Connection #0 left intact
    * Closing connection #0

     
  • Daniel Stenberg

    Daniel Stenberg - 2002-06-11
    • status: open --> open-works-for-me
     
  • Daniel Stenberg

    Daniel Stenberg - 2002-06-18
    • status: open-works-for-me --> closed-works-for-me
     
  • Daniel Stenberg

    Daniel Stenberg - 2002-06-18

    Logged In: YES
    user_id=1110

    No feedback, works in tests. Closing.