webdav: replace File with io.ReadCloser

Closes: https://github.com/emersion/go-webdav/issues/17
This commit is contained in:
Simon Ser
2020-01-21 22:19:34 +01:00
parent a5d750f1e1
commit 6023eb58a0
2 changed files with 23 additions and 9 deletions

View File

@@ -24,7 +24,7 @@ func (fs LocalFileSystem) path(name string) (string, error) {
return filepath.Join(string(fs), filepath.FromSlash(name)), nil
}
func (fs LocalFileSystem) Open(name string) (File, error) {
func (fs LocalFileSystem) Open(name string) (io.ReadCloser, error) {
p, err := fs.path(name)
if err != nil {
return nil, err