FTP (318 Views)
Reply
Occasional Advisor
rick agostino
Posts: 13
Registered: ‎07-20-2008
Message 1 of 2 (318 Views)

FTP

Is it possible when transferring a file (VIA FTP) to retain the original files date/time stamp when transferred to the target server?.
Honored Contributor
Steven Schweda
Posts: 9,091
Registered: ‎02-23-2005
Message 2 of 2 (318 Views)

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/
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.