FTP search

Linkages abbeflabbe at InospamIhotmail.com
Sat Jul 12 04:41:27 EDT 2003


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







More information about the Python-list mailing list