Subject: Re: ctime support on SFTP subsystem

Re: ctime support on SFTP subsystem

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 6 Oct 2010 14:39:49 +0200 (CEST)

On Wed, 6 Oct 2010, Tor Arntsen wrote:

> Indeed, there is no ctime in there.. it's a bit strange that it's so, I can
> definitely see the point of checking the ctime value of a remote file: if it
> had been copied into the remote location with e.g. cp -p you won't be able
> to figure out when the file was placed there without it. Is there some
> other mechanism in the protocol to do the equivalent thing of checking
> ctime?

It was added in a later SFTP protocol version. If you check section 7 of the
most recent internet-draft (SFTP v6) you find it there:

http://tools.ietf.org/wg/secsh/draft-ietf-secsh-filexfer/draft-ietf-secsh-filexfer-13.txt

Actually, even SFTP v4 has it added in section 5:

http://tools.ietf.org/wg/secsh/draft-ietf-secsh-filexfer/draft-ietf-secsh-filexfer-04.txt

-- 
  / daniel.haxx.se
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-10-06