Skip to content

SetLastWriteTime and SetLastWriteTimeUtc not implemented #228

Closed

Description

@ygoe

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?

Activity

  1. ygoe commented on May 30, 2017

    @ygoe
    Author

    This code seems to be the workaround:

    var sftpFile = client.Get("path/to/file");
    sftpFile.LastWriteTimeUtc = someTime;
    sftpFile.UpdateStatus();
    
  2. Rondom commented on May 30, 2017

    @Rondom

    See #217

  3. ygoe commented on May 31, 2017

    @ygoe
    Author

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

  4. drieseng commented on Aug 16, 2017

    @drieseng
    Member

    Duplicate of #217.

  5. added this to the 2023.0.0 milestone on Sep 29, 2023
  6. WojciechNagorski commented on Oct 10, 2023

    @WojciechNagorski
    Collaborator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions