added sftp client implementation
This commit is contained in:
parent
ad41ddbe54
commit
ce73f0472c
175 changed files with 28135 additions and 13 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue