commit | 0277caa990e36f7f2c313b1fa94b5591b91aeea5 | [log] [tgz] |
---|---|---|
author | John Eikenberry <jae@zhar.net> | Mon Dec 30 15:36:04 2019 -0800 |
committer | John Eikenberry <jae@zhar.net> | Thu Jan 02 12:59:24 2020 -0800 |
tree | 6f967ac89ac5e7709d6a068dfbf7b490f4f97ed6 | |
parent | 939a6934bccd1dea0311a9e9b3ee57ae86197ba1 [diff] |
fix S_IFMT value on windows and plan9 Go defines S_IFMT on windows, plan9 and js/wasm as 0x1f000 instead of 0xf000. None of the the other S_IFxyz values (even on those mentioned) include the "1" (in 0x1f000) which prevents them from matching the bitmask. This fixes that by overriding the S_IFMT value on the effected platforms to be 0xf000, as it it on all others.
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.