FTP (372 Views)
Occasional Advisor
Posts: 13
Registered: ‎07-20-2008
Message 1 of 2 (372 Views)


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
Posts: 9,173
Registered: ‎02-23-2005
Message 2 of 2 (372 Views)


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.

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.