Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SetLastWriteTime and SetLastWriteTimeUtc not implemented #228

Closed
ygoe opened this issue May 30, 2017 · 5 comments · Fixed by #1194
Closed

SetLastWriteTime and SetLastWriteTimeUtc not implemented #228

ygoe opened this issue May 30, 2017 · 5 comments · Fixed by #1194
Milestone

Comments

@ygoe
Copy link

ygoe commented May 30, 2017

This is documented in the code, these methods throw a NotImplementedException. I'd rather have them do what they're supposed to do. Is this a complicated feature to implement?

Or, put it another way, can I upload a local file and keep its last write time?

@ygoe
Copy link
Author

ygoe commented May 30, 2017

This code seems to be the workaround:

var sftpFile = client.Get("path/to/file");
sftpFile.LastWriteTimeUtc = someTime;
sftpFile.UpdateStatus();

@Rondom
Copy link

Rondom commented May 30, 2017

See #217

@ygoe
Copy link
Author

ygoe commented May 31, 2017

That doesn't help for the *Utc methods because the attributes don't have that information.

@drieseng
Copy link
Member

Duplicate of #217.

@WojciechNagorski
Copy link
Collaborator

Version 2023.0.0 has been published https://www.nuget.org/packages/SSH.NET/2023.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants