sftp/examples/go-sftp-server
Daniel Theophanes d8ec5de5ee 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.
2019-01-18 16:29:07 -08:00
..
README.md sftp: update tests to finish and not panic on windows 2019-01-18 16:29:07 -08:00
main.go sftp: update tests to finish and not panic on windows 2019-01-18 16:29:07 -08:00

README.md

Example SFTP server implementation

In order to use this example you will need an RSA key.

On linux-like systems with openssh installed, you can use the command:

ssh-keygen -t rsa -f id_rsa

Then you will be able to run the sftp-server command in the current directory.