1753657 Members
5728 Online
108798 Solutions
New Discussion

Re: FTP

 
rick agostino
Occasional Advisor

FTP

Is it possible when transferring a file (VIA FTP) to retain the original files date/time stamp when transferred to the target server?.
1 REPLY 1
Steven Schweda
Honored Contributor

Re: FTP

Not with a typical FTP client program. The
old standard FTP does not handle such meta
data. I think that the RFC has been extended
to deal with this, but finding servers and
clients which can use the protocol extensions
may be difficult.

If you're fetching files, wget can try to
request and interpret a remote directory
listing, extract the date-time info, and set
the date-time on the fetched file(s).
Results may vary, because of the lameness
inherent in a UNIX "ls -l" report.

I don't use it, but I suspect that cURL can
do it, too.

http://www.gnu.org/software/wget/wget.html
http://curl.haxx.se/