Re: [twsocket] FTP file download done

2017-06-27 Thread Florian Hector
Am 27.06.2017 um 18:16 schrieb Angus Robertson - Magenta Systems Ltd:
>> UpdateFileAge and UpdateUFileAge seem to be for the server side, 
>> what I need is to set the file age of the downloaded file.
> They work fine in TMagFtp which is an FTP client.  
>
> Angus
>
I'd love to use TMagFtp with all the goodies  it has to offer, unfortunately I 
can't get my D7 to
install the components, so I'm stuck with what ICS has to offer for the time 
being.

I have to upgrade eventually, but not anytime soon.

Florian

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] FTP file download done

2017-06-27 Thread Angus Robertson - Magenta Systems Ltd
> UpdateFileAge and UpdateUFileAge seem to be for the server side, 
> what I need is to set the file age of the downloaded file.

They work fine in TMagFtp which is an FTP client.  

Angus

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] FTP file download done

2017-06-27 Thread Florian Hector

> ICS has two functions UpdateFileAge and UpdateUFileAge in
> OverbyteIcsFtpSrvT.pas to set the time stamp to local or UTC time
> respectively.  
>
> Of course you need the correct time stamp to start with, which depends
> on the FTP server capabilities, some are better than others.  UTC is
> safer since it does not change twice a year. 
>  
Angus,

UpdateFileAge and UpdateUFileAge seem to be for the server side, what I need is 
to set the file age
of the downloaded file.

Florian
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Aborting PUT

2017-06-27 Thread Angus Robertson - Magenta Systems Ltd
> Only remaining is the Resume option. Thanks for the suggestion.
> Question: With TFtpClient to Resume transfer do I have to know 
> the remote file size ?

You only have to know the position from which you want to resume, ie
the size of the file partially downloaded.  

But unless you know the expected size, you won't know whether you need
to resume.  You can get into a loop if you resume a file from the end.


You'll see a lot of checks in TMagFtp and they are necessary, if you
want robust downloads.  TMagFtp does use sync methods, but there is a
threaded version which I've tested with a few hundred simultaneous FTP
sessions.  So I've never seen a reason to rewrite something already
solid as async and debug and test it all again.  

Angus

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Aborting PUT

2017-06-27 Thread Allan Fernandes
I was looking at TMagFtp and yes it does everything. But I have already done 
most of my modules in Async type coding. Only remaining is the Resume option. 
Thanks for the suggestion.
Question: With TFtpClient to Resume transfer do I have to know the remote file 
size ?
RegardsAllan

  From: Angus Robertson - Magenta Systems Ltd 
 To: twsocket@lists.elists.org 
 Sent: Friday, 16 June 2017 3:38 PM
 Subject: Re: [twsocket] Aborting PUT
   
> I have a backup application that I am revamping. You got me 
> right, I am using both the Client and Server modules as my 
> application is loaded on Source machine and Destination too. I 
> get your point that I will have to work from the Client side 
> majorly and not from the Server side.Thanks I will do just that.

You will find the TMagFtp component works very closely with the ICS web
server, for bulk file uploads and downloads, with all the automated
file checking and resumed uploads handled automatically, and
extensively tested for 12 years.  

In particular they use special commands to index sub-directories, so a
single FTP call will return a list of thousands of sub-directories,
whereas a normal FTP server would need to list each one separately with
thousands of commands. 

Suggest you test the compiled xferdemo3.exe demo against the ICS FTP
server sample.  It will save you a lot of development effort. 

Angus  

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


   
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be