Subject: Re: touch a file remotely

Re: touch a file remotely

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Wed, 18 May 2011 10:28:08 -0700

On Wed, May 18, 2011 at 07:59:16AM -0700, Mark Roden wrote:
> I'm looking for the ability to touch a file on a remote server where
> I'm logged in via scponly. I have sftp read/write access in the
> directory I need to write things.

If by "touch" you mean to change the mtime of the file, then you can
do that in the SFTP subsystem using the libssh2_sftp_stat_ex() call.

>>> Dan
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2011-05-18