FTP search

L

Linkages

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top