Subject: Re: touch a file remotely

Re: touch a file remotely

From: Dan Fandrich <>
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
Received on 2011-05-18