webdav: replace File with io.ReadCloser
Closes: https://github.com/emersion/go-webdav/issues/17
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user