[DUG] FTP

Peter Ingham ping_delphilist at 3days.co.nz
Thu Feb 2 23:14:25 NZDT 2006


Robert martin wrote:
> Hi
>
> I am ftping some files down from a web site (ours).  The FTP component 
> gets a Dir list and downloads some of the files.  However if I am busy 
> uploading a file (say 1-2 mb) then a download will fail as the FTP 
> component tries to download a file that is still being uploaded.  Is 
> there anything I can to about this (prevent the file appearing in the 
> DIR list?) or should I just try to trap the error?
>
>
My usual technique is to do uploads to a different directory, and then 
rename into the desired directory from which downloads are
done.  This means the new version of the file "appears" atomically.


More information about the Delphi mailing list