commit | d8ec5de5ee3491c45e3225ae70e8158447dfea50 | [log] [tgz] |
---|---|---|
author | Daniel Theophanes <kardianos@gmail.com> | Fri Jan 18 15:59:30 2019 -0800 |
committer | Daniel Theophanes <kardianos@gmail.com> | Fri Jan 18 16:29:07 2019 -0800 |
tree | 1cb00191bb89d95188a509fc96e4d2311f437827 | |
parent | 08de04f133f27844173471167014e1a753655ac8 [diff] |
sftp: update tests to finish and not panic on windows Many Unix assuptions have been made when testing. Previously running tests on windows threw a panic part way through the tests. After these changes many more tests pass when the fix was isolated to the test itself, and none panic. Some tests are skipped because they do make sense on windows (chmod, chown), while others are skipped just to how the test was implemented. Lastly, some of the external executables were hard coded. Change these to look paths in TestMain first. This is done to better support windows, where openssh may be installed and sftp and sftp-server may both be in the PATH.
The sftp
package provides support for file system operations on remote ssh servers using the SFTP subsystem. It also implements an SFTP server for serving files from the filesystem.
See godoc.org/github.com/pkg/sftp for examples and usage.
The basic operation of the package mirrors the facilities of the os package.
The Walker interface for directory traversal is heavily inspired by Keith Rarick's fs package.
We welcome pull requests, bug fixes and issue reports.
Before proposing a large change, first please discuss your change by raising an issue.
For API/code bugs, please include a small, self contained code example to reproduce the issue. For pull requests, remember test coverage.
We try to handle issues and pull requests with a 0 open philosophy. That means we will try to address the submission as soon as possible and will work toward a resolution. If progress can no longer be made (eg. unreproducible bug) or stops (eg. unresponsive submitter), we will close the bug.
Thanks.