浏览文件
rooted_others.go
20 行 · 491 B历史下载| 1 | //go:build !linux && !darwin && !windows |
| 2 | |
| 3 | package reversesshfs |
| 4 | |
| 5 | import ( |
| 6 | "errors" |
| 7 | "io" |
| 8 | |
| 9 | "github.com/pkg/sftp" |
| 10 | ) |
| 11 | |
| 12 | type rootedHandlers struct{} |
| 13 | |
| 14 | func newRootedServer(io.ReadWriteCloser, string, bool, []string) (*sftp.RequestServer, *rootedHandlers, error) { |
| 15 | return nil, nil, errors.New("the rooted builtin sftp server is supported only on Linux, macOS, and Windows") |
| 16 | } |
| 17 | |
| 18 | func (*rootedHandlers) Close() error { return nil } |
| 19 | |
| 20 | func (*rootedHandlers) expectRemove(string) bool { return false } |

