FTP search

Discussion in 'Python' started by Linkages, Jul 12, 2003.

  1. Linkages

    Linkages Guest

    im new with python..
    im trying to do a script to find a file
    in a FTP ...the script is supposed to work with
    a recursive function that search in the FS
    entering in each DIR until the file is found...

    more or less something similar...

    Function read_directory( directory_start )
    {


    list allfilespresentintheDIR
    if (fileX) is present END

    else

    for each DIR in [directory_start]
    {

    read_directory( newdirectory_start ); // ricorsion

    }
    Next;
    }



    i dont know how to translate

    for each DIR in (directory_start)

    using ftplib i know how to list files ...
    to list dirs... but i dont know how to point
    at each dir...


    suggetions ?


    bye linkages
     
    Linkages, Jul 12, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. someone

    FTP over SSL vs FTP over SSH

    someone, Apr 24, 2004, in forum: Java
    Replies:
    1
    Views:
    4,651
    iksrazal
    Apr 25, 2004
  2. Replies:
    3
    Views:
    5,780
  3. Nico Grubert
    Replies:
    0
    Views:
    684
    Nico Grubert
    Nov 24, 2005
  4. Abby Lee
    Replies:
    5
    Views:
    480
    Abby Lee
    Aug 2, 2004
  5. D. Buck
    Replies:
    2
    Views:
    597
    D. Buck
    Jun 29, 2004
Loading...

Share This Page