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
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