sftp can't preserve uploaded mtime: fsetstat: No such file or directory
ilya Basin
basinilya at gmail.com
Sat Aug 3 02:20:21 AEST 2024
I've just tried that with psftp 0.81.
Unlike pscp, psftp doesn't seem to have the option to preserve timestamps ('-p' or something else). It prints an error message when tried '-p'. The 'chmod' or 'put' commands don't seem to have that either.
With default options on both OpenSSH server and EFT server uploaded files mtime is the time of upload.
Our EFT Server doesn't have the SCP plugin and the admins don't plan to enable it.
-------- Original Message --------
From: Jim Knoble [mailto:jmknoble at pobox.com]
Sent: Friday, August 2, 2024 at 14:41 UTC
To: ilya Basin
Cc: Damien Miller; Brian Candler; openssh-unix-dev at mindrot.org
Subject: sftp can't preserve uploaded mtime: fsetstat: No such file or directory
On Aug 2, 2024, at 00:32, ilya Basin <basinilya at gmail.com> wrote:
Looks like EFT doesn't support SSH2_FXP_FSETSTAT (working with a file handle), but it does support SSH2_FXP_SETSTAT (working with a file path). OpenSSH sftp only uses SSH2_FXP_FSETSTAT for directories. It doesn't have a separate "touch" command to set mtime for a path and its "chmod" command doesn't support that either.
Curious whether you've tried PuTTY's PSFTP client and whether it works or not....
More information about the openssh-unix-dev
mailing list