Brian Candler
2024-Jul-31 15:42 UTC
sftp can't preserve uploaded mtime: fsetstat: No such file or directory
On 31/07/2024 16:28, ilya Basin wrote:> I use openssh-client 1:8.9p1-3ubuntu0.6 and I'm trying to upload files to EFT Server. > > Previously I was using Total Commander with SFTP plugin and it does preserve mtime.https://www.ghisler.com/plugins.htm > > When I try to do the same from command line it fails. > > $ sftp -p user at server <<< 'put MRW_PM_Series_17146_PSSF_T1_HB.zip "/0_GLS to be automated/2024_batch_Q3/"' > > (user at server) Enter password: credentials to continue > Connected to server. > sftp> put MRW_PM_Series_17146_PSSF_T1_HB.zip "/0_GLS to be automated/2024_batch_Q3/" > Uploading MRW_PM_Series_17146_PSSF_T1_HB.zip to /0_GLS to be automated/2024_batch_Q3/MRW_PM_Series_17146_PSSF_T1_HB.zip > MRW_PM_Series_17146_PSSF_T1_HB.zip 100% 977KB 1.0MB/s 00:00 > remote fsetstat: No such file or directoryJust a thought: does it work if the target directory name doesn't include spaces?
ilya Basin
2024-Jul-31 15:48 UTC
sftp can't preserve uploaded mtime: fsetstat: No such file or directory
I've just tried that. It still fails.
Is it possible to dump the decrypted sftp commands? I tried -vvv but found
nothing interesting.
The Total Commander plugin calls:
libssh2_sftp_setstat(ConnectSettings->sftpsession,
thename,&attr)
What does the command line client use?
-------- Original Message --------
From: Brian Candler [mailto:b.candler at pobox.com]
Sent: Wednesday, July 31, 2024 at 15:42 UTC
To: ilya Basin; openssh-unix-dev at mindrot.org
Subject: sftp can't preserve uploaded mtime: fsetstat: No such file or
directory
On 31/07/2024 16:28, ilya Basin wrote:
I use openssh-client 1:8.9p1-3ubuntu0.6 and I'm trying to upload files to
EFT Server.
Previously I was using Total Commander with SFTP plugin and it does preserve
mtime. https://www.ghisler.com/plugins.htm
When I try to do the same from command line it fails.
$ sftp -p user at server <<< 'put
MRW_PM_Series_17146_PSSF_T1_HB.zip "/0_GLS to be
automated/2024_batch_Q3/"'
(user at server) Enter password: credentials to continue
Connected to server.
sftp> put MRW_PM_Series_17146_PSSF_T1_HB.zip "/0_GLS to be
automated/2024_batch_Q3/"
Uploading MRW_PM_Series_17146_PSSF_T1_HB.zip to /0_GLS to be
automated/2024_batch_Q3/MRW_PM_Series_17146_PSSF_T1_HB.zip
MRW_PM_Series_17146_PSSF_T1_HB.zip
100% 977KB 1.0MB/s 00:00
remote fsetstat: No such file or directory
Just a thought: does it work if the target directory name doesn't include
spaces?
Possibly Parallel Threads
- sftp can't preserve uploaded mtime: fsetstat: No such file or directory
- sftp can't preserve uploaded mtime: fsetstat: No such file or directory
- sftp can't preserve uploaded mtime: fsetstat: No such file or directory
- sftp can't preserve uploaded mtime: fsetstat: No such file or directory
- sftp can't preserve uploaded mtime: fsetstat: No such file or directory