added sftp client implementation

This commit is contained in:
ston1th 2022-04-02 20:05:07 +02:00
commit ce73f0472c
175 changed files with 28135 additions and 13 deletions

View file

@ -3,10 +3,13 @@
package provider
import (
"errors"
"io/fs"
"os"
)
var ErrFstat = errors.New("fstat not supported")
type FS interface {
Stat(string) (fs.FileInfo, error)
Remove(string) error
@ -15,6 +18,7 @@ type FS interface {
MkdirAll(string, os.FileMode) error
Root() string
Fstat(uintptr) (int64, error)
Close() error
}
type walk struct {