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: Velichko Yuriy <velichko.yuriy_at_gmail.com>
Date: Tue, 27 Aug 2013 00:00:38 +0300

Ok. Thanks for the answer!

On 26 August 2013 23:19, Daniel Stenberg <daniel_at_haxx.se> wrote:

> 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<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<http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>
>

-- 
Best Regards!

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

the libssh2 team