Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Apr : Transferring directories having 0..n sub-dirs using idFTP
| Subject: | Transferring directories having 0..n sub-dirs using idFTP |
| Posted by: | "H. Hoffmann" (no.ma..@return.com) |
| Date: | Thu, 27 Apr 2006 20:58:01 |
Hello,
i need a "good idea" for a let's call it how-to or smart way to transfer
complete directories that also may have a number of 0 to n sub-dirs
using idFTP. I'm using D2006pro and Indy 9.
Currently the frontend allows of my FTP app only allows to transfer the
selected files (present in an TListBox/TListView) within the currently
active directory of the FTP-Host.
This app shall be extended with the possibility to transfer also the
eventually selected directories with in current active FTP-Host
directory (IOW: to copy selected files and folders between drives like
in the Windows Explorer or classic FTP-File managers).
The question is how to do in a "good" or call it smart way to avoid
running in recursive traps while iterating through the selected
directories down to the very last sub-dir of the selected dir on top.
e.g. selected dir = MAINDATA which has \SUBDIR 1\ {containing files and
again sub-dir(s)}\ ..downto..\sub-dir n.
...hope to have it explained a bit clear.
Is there somebody out there that has a good idea for that or some lines
of code as an example?
I'd be happy if yes...
thx in advance