www.libssh2.org | Daily snapshots | Mailing list archive | Docs | Examples | github

Archive Index This month's Index

Subject: Re: [SFTP] how to determine the creation time of the file when browsing directory.

Re: [SFTP] how to determine the creation time of the file when browsing directory.

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 26 Aug 2013 22:19:00 +0200 (CEST)

On Mon, 26 Aug 2013, Velichko Yuriy wrote:

> I need the time of file CREATION.

That's unfortunately not exposed by libssh2_sftp_stat_ex() ! The time can be
retrieved from the server using the SFTP protocol[1] but for some reason the
code was never written to ask for that so atime and mtime are the only ones
provided!

I wouldn't mind seeing the code extended to support this. It would need be
done some clever way to not break compatibility with existing ABI and
applications.

[1] =
http://tools.ietf.org/wg/secsh/draft-ietf-secsh-filexfer/draft-ietf-secsh-filexfer-05.txt
chapter 5

-- 
  / daniel.haxx.se
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2013-08-26

the libssh2 team