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

Add support for working directory in Server #528

Merged
merged 12 commits into from
Oct 18, 2022

Commits on Oct 14, 2022

  1. Add support for working directory in Server

    This commit allows the working directory for the (old) Server
    implementation to be changed without doing a `os.Chdir` first.
    
    The feature can be enabled with `sftp.WithServerWorkingDirectory(dir)`
    passed as an option to `sftp.NewServer`.
    
    It is useful when the `sftp` is used as part of a larger service that
    does more than just serve `sftp` and using `os.Chdir` is not an option.
    
    The fallback behavior (when the option is not specified) is that the
    path remains unmodified (as before).
    mafredri committed Oct 14, 2022
    Configuration menu
    Copy the full SHA
    6a7168c View commit details
    Browse the repository at this point in the history

Commits on Oct 15, 2022

  1. Add tests for toLocalPath

    mafredri committed Oct 15, 2022
    Configuration menu
    Copy the full SHA
    624034d View commit details
    Browse the repository at this point in the history

Commits on Oct 17, 2022

  1. Configuration menu
    Copy the full SHA
    7de2651 View commit details
    Browse the repository at this point in the history
  2. Simplify test

    mafredri committed Oct 17, 2022
    Configuration menu
    Copy the full SHA
    ff98544 View commit details
    Browse the repository at this point in the history
  3. Revert unintended change

    mafredri committed Oct 17, 2022
    Configuration menu
    Copy the full SHA
    78e5961 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    32ac60b View commit details
    Browse the repository at this point in the history
  5. Update tests for toLocalPath

    mafredri committed Oct 17, 2022
    Configuration menu
    Copy the full SHA
    ae4859f View commit details
    Browse the repository at this point in the history

Commits on Oct 18, 2022

  1. Configuration menu
    Copy the full SHA
    bf40a02 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d0f0413 View commit details
    Browse the repository at this point in the history
  3. Add linux counterpart test

    mafredri committed Oct 18, 2022
    Configuration menu
    Copy the full SHA
    b3f237d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c93b0a0 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    8514370 View commit details
    Browse the repository at this point in the history