Hello all (I'm new to the list, and this is my first post).
Is the following the way to download (via ftp) the contents of an entire directory? IOW, providing the HostDirName but no HostFileName? Or...? I'm also open to suggestion on better ways to do this, such as removing unnecessary code (probably either ConnectAsync or OpenAsync is redundant, the same with GetAsync and ReceiveAsync, as well as Quit and Free. Any suggestions on which calls to keep and which to get rid of? procedure GetFTPFiles; var ICSFTP: TFTPClient; begin ICSFTP := TFTPClient.Create(nil); try ICSFTP.UserName := 'BillyBob'; . . . ICSFTP.HostDirName := '/dasFesche/Umherstolzieren/desHahns/IstEin/BekannterAnblick'; //leave ICSFTP.HostFileName unspecified? { probably only one of the following two methods is needed.? } ICSFTP.ConnectAsync; ICSFTP.OpenAsync; { probably only one of the following two methods is needed.? } ICSFTP.GetAsync; ICSFTP.ReceiveAsync; finally { probably only one of the following two methods is needed.? } ICSFTP.Quit; ICSFTP.Free; end; end; --
The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If the reader of this message is not the intended recipient, you are hereby notified that your access is unauthorized, and any review, dissemination, distribution or copying of this message including any attachments is strictly prohibited. If you are not the intended recipient, please contact the sender and delete the material from any computer.
-- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be