Menu

#352 ftp.tcl: file list empty after file get

open
ftp (55)
5
2004-03-03
2003-08-03
jan klaasen
No

when I list a dir from root, say
list /pub/linux/redhat

I get a listing as usual. If I then do:

get /pub/linux/redhat/readme.txt

I get readme.txt , ok.

If I now do :

list /pub/linux/mandrake

I get an empty dirlisting. If I do :

list /pub/linux/mandrake

I get the dirlisting with twice the contents .....
pub is a symbolic link in root.

If I do list, get, cd, list I get a normal listing.
This problem occurs with different ftp daemons.

Discussion

  • Aaron Faupell

    Aaron Faupell - 2003-08-05
    • summary: list get list gives empty list --> ftp.tcl: file list empty after file get
     
  • Andreas Kupries

    Andreas Kupries - 2003-10-21

    Logged In: YES
    user_id=75003

    I see now difference between the first 'list' which returns an
    empty list, and the second one returning a list with twice the
    contents. The text around them seems to imply that they are
    different command. Or do you wish to say that the second
    command is identical, but behaves different nonetheless ?

    Could this be a buffering issue ? The result from the first
    command somehow stored internally and returned together
    with the result of the next command ?

    What happens when verbose logging is activated ? (From the
    docs: The output of the package is controlled by two state
    variables, ::ftp::VERBOSE and ::ftp::DEBUG.
    Setting ::ftp::VERBOSE to "1" forces the package to show all
    responses from a remote server. The default value is "0".
    Setting ::ftp::DEBUG to "1" enables debugging and forces the
    package to show all return codes, states, state changes
    and "real" ftp commands. The default value is "0".)

    This could tell us more about the data actually going to and
    coming from the ftp server.

     
  • Andreas Kupries

    Andreas Kupries - 2004-03-03
    • assigned_to: andreas_kupries --> gwlester