Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upssh2 does not set mtime/atime (scp_send64, setstat, fsetstat) #103
Comments
|
Btw.: Using python 3.8.2 on Ubuntu 20.04 |
|
Hey,
|
|
I just took a peek into the source code. I didn't find anything suspicious yet. |
|
I've never worked with cdef and the like.
and so on... |
|
I tried the following (with full paths though):
first print with local file says: ".bashrc 2019-07-08 08:10:56.616019" EDIT: I also tried it with relative paths (hard coded) with the same negative result |
|
I also tried the sftp_handle.fsetstat, but that also doesn't seem to work. |
|
Will try and reproduce in C when have some time, not high priority atm. |
Documentation says:
But mtime and atime seem to be ignored. I tried copying from the examples, but it still won't work.
My authentication method is by the way userauth_password.
It did work with paramiko, so it shouldn't be an issue with the ssh server.
By the way: I would consider to work around this using setstat(path, attrs), but I'm not sure how I would have to create the SFTPAttributes object. It would be nice to have an example or more documentation on that.