[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Time of a file on a remote machine via SCP API?


Hi,
no, it is not possible with the scp API. The SCP is very limited and
can only send and receive files (and is deprecated [1]).

You could do this though with the SFTP API.

[1] https://gitlab.com/libssh/libssh-mirror/-/blob/master/CHANGELOG?ref_type=heads#L24

Regards,.
Jakub

On Thu, Jan 18, 2024 at 6:56 AM Ogogon !!! <ogogon@xxxxxxxxxx> wrote:
>
> Greetings, colleagues!
>
> Please tell me, is it possible to get the creation or modification time
> of a file on a remote machine using the SCP API?
> I want to write a utility that will copy only changed files.
>
> Ogogon.
>


Follow-Ups:
Re: Time of a file on a remote machine via SCP API?Ogogon !!! <ogogon@xxxxxxxxxx>
References:
Time of a file on a remote machine via SCP API?Ogogon !!! <ogogon@xxxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org