Resolve "Add Walk to WebDav interface"

This commit is contained in:
Adphi
2019-07-16 06:29:38 +00:00
parent a9c13d5422
commit 061dc12713
4 changed files with 101 additions and 4 deletions

View File

@@ -3,6 +3,7 @@ package types
import (
"io"
"os"
"path/filepath"
)
// WebDav available methods
@@ -31,4 +32,8 @@ type WebDav interface {
Write(path string, data []byte, _ os.FileMode) error
// WriteStream writes a stream
WriteStream(path string, stream io.Reader, _ os.FileMode) error
// Walk walks the file tree rooted at root, calling walkFn for each file or
// directory in the tree, including root.
Walk(path string, walkFunc filepath.WalkFunc) error
}